I successfully installed and configured Xampp for Linux 1.7 in Ubuntu 8.10. I then proceeded to setup my virtual hosts and do a test on hosting 2 separate domains via name. Unfortunately, the method for doing so apparently isn't identical to setting it up in Windows.
So here's what I've done so far.
I went to httpd.conf and searched for the following line:
- Code: Select all
Include etc/extra/httpd-vhosts.conf
I removed the "#" from in front of it, then saved the file.
Next, I opened httpd-vhosts.conf and deleted everything in it and added the following:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs/
ServerName davesforum.info
ServerAlias www.davesforum.info
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs2/
ServerName myownserver.info
ServerAlias www.myownserver.info
<Directory /opt/lampp/htdocs2/>
Options Indexes +FollowSymLinks Include ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot /opt/lampp/htdocs/
</VirtualHost>
**EDIT**
Ok, I found my problem in apachestart.log .
It turns out the lines:
- Code: Select all
<Directory /opt/lampp/htdocs2/>
Options Indexes +FollowSymLinks Include ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
will not work for Linux.
My question is, are those lines just not necessary for Linux or is there a different format for them?
Thanks in advance.