vhost syntax error
Posted by: j-r (---.access.telenet.be)
Date: August 21, 2025 10:51AM

But what?
Hi
Wamp says that er een syntax error is in vhost.conf but what?

<VirtualHost *:80>
ServerAdmin jan@janr.be
DocumentRoot "D:/drive/Jan/Documenten/WebSites/one/janr.be/httpd.www/"
ServerName janr.local
ErrorLog "C:/wamp64/logs/errorjanr.log"
CustomLog "C:/wamp64/logs/customjanr.log" common
<Directory "D:/drive/Jan/Documenten/WebSites/one/janr.be/httpd.www/">
AllowOverride all
Options +Indexes +FollowSymLinks +MultiViews
Require local
Order Deny,Allow --> error line
Allow from all
</Directory>
</VirtualHost>

Jan

Options: ReplyQuote
Re: vhost syntax error
Posted by: Otomatic (Moderator)
Date: August 21, 2025 04:04PM

Hi,

> Order Deny,Allow --> error line
> Allow from all

This is for Apache 2.2, not Apache 2.4

Use Require

In addition :
DocumentRoot "D:/drive/Jan/Documenten/WebSites/one/janr.be/httpd.www/"
must not have a final slash!

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 08/21/2025 04:59PM by Otomatic.

Options: ReplyQuote
Re: vhost syntax error
Posted by: j-r (---.access.telenet.be)
Date: September 01, 2025 11:29AM

Thanks. that helped.

Options: ReplyQuote


Sorry, only registered users may post in this forum.