|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP with apache virtual Host
Hi all,
I have set up two domains on my test server running apache on win 98. The virtualhost settings are as follows. <VirtualHost *> ServerAdmin URL DocumentRoot C:/Apache/www/localhost.com ServerName localhost.com ScriptAlias /php4/ "C:/php4/" ErrorLog C:/Apache/www/localhost.com/logs/localhost.com-error_log CustomLog C:/Apache/www/localhost.com/logs/localhost.com-access_log common </VirtualHost> <VirtualHost *> ServerAdmin URL DocumentRoot C:/Apache/www/mymarket.com ServerName mymarket.com ScriptAlias /php4/ "C:/php4/" ErrorLog C:/Apache/www/mymarket.com/logs/mymarket.com-error_log CustomLog C:/Apache/www/mymarket.com/logs/mymarket.com-access_log common </VirtualHost> I have a sample index.html file in the Documentroot directories but I'm unable to load the pages thru my browser (nothing happens). Also files with .php extensions also don't get loaded although i have the line: Action application/x-httpd-php /php4/php.exe in the .conf file. Thanks in advance for your help. |
|
#2
|
|||
|
|||
|
Can't help you with Apache on win32. But I need to point out something:
1) DocumentRoot C:/Apache/www/localhost.com Quote the path at all time like so: DocumentRoot "C:/Apache/www/localhost.com" 2) ScriptAlias /php4/ "C:/php4/" If that's the way to configure PHP. Why should both hosts use the same path? |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > PHP with apache virtual Host |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|