Apache Web Server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Apache on Gentoo == | == Apache on Gentoo == | ||
* Add the ServerName directive to the main configuration file (httpd.conf) | |||
* To create a virtual host, just create a new file in /etc/apache2/vhosts.d/ with the name starting with 2 digits. For example: | * To create a virtual host, just create a new file in /etc/apache2/vhosts.d/ with the name starting with 2 digits. For example: | ||
01_images.shoopz.com.conf | 01_images.shoopz.com.conf | ||
* On this file, you just need to define your virtual host, nothing else is required. | |||
* You don't need to duplicate the default_vhost.include which is in fact included from httpd.conf. | * You don't need to duplicate the default_vhost.include which is in fact included from httpd.conf. |
Revision as of 18:31, 7 February 2008
Apache on Gentoo
- Add the ServerName directive to the main configuration file (httpd.conf)
- To create a virtual host, just create a new file in /etc/apache2/vhosts.d/ with the name starting with 2 digits. For example:
01_images.shoopz.com.conf
- On this file, you just need to define your virtual host, nothing else is required.
- You don't need to duplicate the default_vhost.include which is in fact included from httpd.conf.