|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have an issue with setting up virtual hosts on W2K running Appache 2.0.
When I try to access the virtual host domain I am getting a file not found, but only on php script pages. If I upload a HTML page it shows fine. Here is the funny thing, I can access these page correctly when I use the localhost access on the machine itself. If I type localhost/orbit_scan/phpinfo.php it comes up fine. If I do this from the we <virtualhost>.com I am getting the 404 page. Another intresting case, I set the virtualname as the main server (no virtual host directves) and when I access the server then with the virtual name it works and I do get the phpinfo page. This makes me believe, that the issue is not with any access rights in the W2K setup. Does anybody has an idea? Here are my Virtual host directives, the main server(default) is set to localhost. NameVirtualHost 68.xxx.xxx.xxx:80 <VirtualHost 68.xxx.xxx.xxx> ServerName www.orbit-logistic.com ServerAlias orbit-logistic.com ServerAdmin webmaster@orbit-logsitic.com DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/orbit_home/" UseCanonicalName off <Directory "C:/Program Files/Apache Group/Apache2/htdocs/orbit_home/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog logs/error-orbit-logistic TransferLog logs/access-orbit-logistic </VirtualHost> <VirtualHost 68.xxx.xxx.xxx> ServerName xxx.orbit-logistic.com ServerAlias xxx.orbit-logistic.com ServerAdmin webmaster@orbit-logsitic.com DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/orbit_scan/" UseCanonicalName off Options Indexes Includes FollowSymLinks <Directory "C:/Program Files/Apache Group/Apache2/htdocs/orbit_scan/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog logs/error-xxx-orbit-logistic TransferLog logs/transfer-xxx-orbit-logistic </VirtualHost> |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache 2.0 / W2K / Virtual Host /PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|