I have apache running, along with perl, php and mysql on a Win XP Pro box.
Everything was fine, I had my 'main' site set up in the apache folder, and a
couple of virtual hosts in various other folders.
I had a name from
http://www.no-ip.com/ as the main site, and then set up a
..co.uk site as a virtual host.
I had a problem with my hard drive, so saved what I could, including my
http.conf file to refer back to and reinstalled everything, and also decided
to upgrade to apache 2.0.4.9 whilst I was at it.
Also, I decided to run what had previously been a virtual host as my 'main'
site, and make the previous 'main' site a virtual one.
So now I have my .co.uk as the main site and the
http://www.no-ip.com/ set
up as virtual
My main site index.html is a frameset page that simply calls the content
pages, including a menu.html and a page called index1.php
The main site works without a problem.
However, when I connect to my virtual host site, which has ONLY a simple
index.html in it at the moment, it tries to call the same content pages, but
because they're not there (i.e. not in the virtual host folder) I get "The
requested URL /index1.php was not found on this server."
Here are some extracts from my http.conf
ServerRoot "C:/Program Files/Apache Group/Apache2"
Listen 80
ServerName themagsjfc.co.uk:80
UseCanonicalName On
DocumentRoot "f:/themags"
<Directory "f:/themags">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
UserDir "f:/dools"
<Directory "f:/dools">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ErrorLog f:/themags/logs/mags_error.log
CustomLog f:/themags/logs/mags_access.log combined
ScriptAlias /cgi-bin/ "f:/themags/cgi-bin/"
<Directory "f:/themags/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
NameVirtualHost *
## default host
<VirtualHost *>
ServerName
www.themagsjfc.co.uk
DocumentRoot "f:/themags"
ScriptAlias /cgi-bin/ "f:/themags/cgi-bin/"
ErrorLog f:/themags/logs/mags_error.log
CustomLog f:/themags/logs/mags_access.log combined
</VirtualHost>
## virtual host - dools.myftp.org
<VirtualHost *:80>
ServerName
www.dools.myftp.org
DocumentRoot "f:/dools"
ScriptAlias /cgi-bin/ "f:/dools/cgi-bin/"
ErrorLog f:/dools/logs/dools_error.log
CustomLog f:/dools/logs/dools_access.log combined
</VirtualHost>
Why, when the virtual host is requested would apache take the index.html
from the main site, but then go looking in the virtual host directory for
the files??
I've even tried reinstalling apache completely with the same result.
Thanks for any help/advice pointing me to what I suspect is very basic
error!
Ian