ChrisRChamberlain
Programmer
Hi all
The following code is extracted from WAMP on Windows, the file being C:/wamp/bin/apache/Apache2.2.10/conf/httpd.conf
The following code is also extracted from WAMP on Windows, the file being C:/wamp/bin/apache/Apache2.2.10/conf/extra/httpd-vhosts.conf, IOW, the 'Included' file.
The code allows n websites to exist in their own folders below C:/wamp/www/ on Windows.
In Ubuntu Server 9.04, there exists a file /etc/apache2/httpd.conf, which is empty by default.
The file /etc/apache2/apache2.conf has an include directive to the empty file, /etc/apache2/httpd.conf.
So does the WAMP code from C:/wamp/bin/apache/Apache2.2.10/conf/extra/httpd-vhosts.conf go in the empty file, /etc/apache2/httpd.conf, or perhaps in an included file in /etc/apache2/sites-available?
TIA
Chris
PDFcommander.com
motrac.co.uk
The following code is extracted from WAMP on Windows, the file being C:/wamp/bin/apache/Apache2.2.10/conf/httpd.conf
Code:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
The following code is also extracted from WAMP on Windows, the file being C:/wamp/bin/apache/Apache2.2.10/conf/extra/httpd-vhosts.conf, IOW, the 'Included' file.
Code:
<VirtualHost *:80>
[tab]ServerName [URL unfurl="true"]www.mysite1.com[/URL]
[tab]ServerAlias mysite1.com mysite1
[tab]DocumentRoot C:/wamp/[URL unfurl="true"]www/mysite1[/URL]
[tab]ErrorLog C:/wamp/[URL unfurl="true"]www/mysite1/logs/error.log[/URL]
[tab]CustomLog C:/wamp/[URL unfurl="true"]www/mysite1/logs/access.log[/URL] common
</VirtualHost>
<VirtualHost *:80>
[tab]ServerName [URL unfurl="true"]www.mysite2.com[/URL]
[tab]ServerAlias mysite2.com mysite2
[tab]DocumentRoot C:/wamp/[URL unfurl="true"]www/mysite2[/URL]
[tab]ErrorLog C:/wamp/[URL unfurl="true"]www/mysite2/logs/error.log[/URL]
[tab]CustomLog C:/wamp/[URL unfurl="true"]www/mysite2/logs/access.log[/URL] common
</VirtualHost>
<VirtualHost *:80>
[tab]ServerName [URL unfurl="true"]www.mysite3.com[/URL]
[tab]ServerAlias mysite3.com mysite3
[tab]DocumentRoot C:/wamp/[URL unfurl="true"]www/mysite3[/URL]
[tab]ErrorLog C:/wamp/[URL unfurl="true"]www/mysite3/logs/error.log[/URL]
[tab]CustomLog C:/wamp/[URL unfurl="true"]www/mysite3/logs/access.log[/URL] common
</VirtualHost>
The code allows n websites to exist in their own folders below C:/wamp/www/ on Windows.
In Ubuntu Server 9.04, there exists a file /etc/apache2/httpd.conf, which is empty by default.
The file /etc/apache2/apache2.conf has an include directive to the empty file, /etc/apache2/httpd.conf.
So does the WAMP code from C:/wamp/bin/apache/Apache2.2.10/conf/extra/httpd-vhosts.conf go in the empty file, /etc/apache2/httpd.conf, or perhaps in an included file in /etc/apache2/sites-available?
TIA
Chris
FAQ184-2483
Chris PDFcommander.com
motrac.co.uk