This example assumes you are using the Apache 2 server:
Add the directory to your Apache
configuration, which you can find at
/etc/httpd/conf/httpd.conf
.
Use commands similar to these on the
development system.
These example commands assume a top-level
Source Directory
named poky
in your home
directory.
The example also assumes an RPM package type.
If you are using a different package type, such
as IPK, use "ipk" in the pathnames:
<VirtualHost *:80> .... Alias /rpm ~/poky/build/tmp/deploy/rpm <Directory "~/poky/build/tmp/deploy/rpm"> Options +Indexes </Directory> </VirtualHost>
Reload the Apache configuration as described in this step. For all commands, be sure you have root privileges.
If your development system is using Fedora or CentOS, use the following:
# service httpd reload
For Ubuntu and Debian, use the following:
# /etc/init.d/apache2 reload
For OpenSUSE, use the following:
# /etc/init.d/apache2 reload
If you are using Security-Enhanced Linux (SELinux), you need to label the files as being accessible through Apache. Use the following command from the development host. This example assumes RPM package types:
# chcon -R -h -t httpd_sys_content_t tmp/deploy/rpm