apache & virtual hosts

Alles, was den Apache betrifft, kann hier besprochen werden.

apache & virtual hosts

Postby IINamoRII » 23. April 2010 16:03

If i include the virtual hosts module, i get an error that apache says the directory does not exits, but it if i disable the virtual hosts module apache can find the directories again?
Already tried to put the directory tag in the httpd-vhosts.conf file but that didn't make a difference.??

anyone any good ideas?
i am running apache on a windowsOS

mvg,

gerard
IINamoRII
 
Posts: 5
Joined: 23. April 2010 16:00

Re: apache & virtual hosts

Postby Altrea » 23. April 2010 16:18

Why don't you show us your sourcecode from your VHosts file?
Why don't you show us anything that can help us to help you?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: apache & virtual hosts

Postby IINamoRII » 23. April 2010 17:12

#
# Virtual Hosts

<VirtualHost *:80>

DocumentRoot "K:/webserver/www"
ServerAdmin webmaster@localhost.com


</VirtualHost>

<VirtualHost *:80>
DocumentRoot "K:/webserver/www/example.com"
directoryIndex index.html index.php
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@example.com
ErrorLog "logs/example-error.log"
CustomLog "logs/example-access.log" common

</VirtualHost>

<VirtualHost *:80>
DocumentRoot "K:/webserver/www/example2.nl"
directoryIndex index.html index.php
ServerName example2.nl
ServerAlias www.example2.nl
ServerAdmin webmaster@example2.nl
ErrorLog "logs/example2-error.log"
CustomLog "logs/example2-access.log" common
</VirtualHost>
IINamoRII
 
Posts: 5
Joined: 23. April 2010 16:00

Re: apache & virtual hosts

Postby IINamoRII » 23. April 2010 19:00

more info
error-log:
client denied by server configuration
acces-log:
get /http/1.1" 403 202
get favicon.ico http/1.1''403 212
IINamoRII
 
Posts: 5
Joined: 23. April 2010 16:00

Re: apache & virtual hosts

Postby Nobbie » 23. April 2010 21:57

IINamoRII wrote:<VirtualHost *:80>

DocumentRoot "K:/webserver/www"
ServerAdmin webmaster@localhost.com


</VirtualHost>


What's the idea of a VirtualHost WITHOUT any IP and WITHOUT any ServerName??

Your VirtualHost-Configuration is very nasty (many many errors). You should spend some hours or days on reading (and understanding) the documentation about VirtualHosts.
Nobbie
 
Posts: 8780
Joined: 09. March 2008 13:04

Re: apache & virtual hosts

Postby IINamoRII » 23. April 2010 23:28

<VirtualHost 192.168.1.x:80>
</VirtualHost>

<VirtualHost example.com:80>
</VirtualHost>

<VirtualHost example2.com:80>
</VirtualHost>

where the * stands should be like this.
What do you mean nasty?, i just followed examples that are in the apache documentation
IINamoRII
 
Posts: 5
Joined: 23. April 2010 16:00

Re: apache & virtual hosts

Postby IINamoRII » 24. April 2010 16:54

problem solved, type error
IINamoRII
 
Posts: 5
Joined: 23. April 2010 16:00


Return to Apache

Who is online

Users browsing this forum: No registered users and 2 guests