EasyPHP
EN FR
>download >components >modules >blog >forum >faq >screenshots >introduction

For Windows Vista/Seven issues, please read the FAQ or leave a detailed message

VirtualHosts problem



Posted by: pedja
July 14, 2010 12:42PM
Hi,

I have 5.2.10 fresh installes but I cannot make it run virtualhost.

I've created c:\www\test.loc\index.html file

Also, I've set hotst file to contain
127.0.0.1 test.loc

I've changed http.conf in conf_files:
Listen *:80
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "c:/www/test.loc"
ServerName test.loc
ErrorLog "logs/test.loc-error.log"
CustomLog "logs/test.loc-access.log" common
</VirtualHost>


Usually, when I manually install Apache, this changes are enough to make it work. But, with EasyPHP it does not.

When I try to access [test.loc] from browser, Apache accpets request but reports error 403 - denied access.

Apache log shows:

[error] [client 127.0.0.1] client denied by server configuration: C:/www/test.loc/index.html


What else should I do to make it work?

Are there plans to add option to EasyPHP configuration tool for setting VirtualHosts or we will be always forced to do settings by manual editing of http.conf?

Options: ReplyQuote
Posted by: pedja
July 14, 2010 01:37PM
I found out solution.

I had to add...

<Directory "C:\www">
Order Deny,Allow
Allow from all
</Directory>


... before <VirtualHost *>

Options: ReplyQuote


Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.