Problem width Xam1.5.3 - Vhost

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem width Xam1.5.3 - Vhost

Postby master_bct » 01. June 2006 21:42

I'm installed Xam1.5.3 and Apache running OK.
But when I edit httpd-vhosts.conf:

##NameVirtualHost *:80
##<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host2.example.com
## DocumentRoot /www/docs/dummy-host2.example.com
## ServerName dummy-host2.example.com
## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>


to

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot /www/docs/dummy-host2.example.com
ServerName dummy-host2.example.com
ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
</VirtualHost>


Restart Apache... but Apache don't run :(

Help Me????
master_bct
 
Posts: 4
Joined: 05. April 2006 07:04

Postby Wiedmann » 02. June 2006 00:14

I don't think that this are valid file- / directory-names for your pc...
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Problem width Xam1.5.3 - Vhost

Postby arif » 05. June 2006 00:13

I have the same problem. No one reply my post!
arif
 
Posts: 3
Joined: 29. May 2006 02:57

Postby WorldDrknss » 08. June 2006 20:29

Example Virtualhost:
You can find tutorials and generators at my webiste.

Code: Select all
    

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
#
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
#

<VirtualHost *:80>
ServerName test1.com
ServerAdmin test@test1.com
ServerAlias www.test1.com
DocumentRoot /srv/www/test1
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/srv/www/test1">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/test1">
Options Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .html .htm .shtml .shtm
</Directory>
HostnameLookups Off
ErrorLog /srv/www/test1/logs/error_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /srv/www/test1/logs/access_log combined
ServerSignature On
ScriptAlias /cgi-bin/ "/srv/www/test1/cgi-bin/"
<Directory "/srv/www/test1/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php
ErrorDocument 400 /error_pages/400.html
ErrorDocument 403 /error_pages/403.html
ErrorDocument 404 /error_pages/404.html
AccessFileName .htaccess
AddHandler cgi-script .cgi
<IfModule mod_negotiation.so>
<IfModule mod_include.so>
Alias /error/ "/srv/www/test1/error/"
<Directory "/srv/www/test1/error">
AllowOverride None
Options IncludesNoExec
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en
</Directory>
</IfModule>
</IfModule>
</VirtualHost>

<VirtualHost *:80>
ServerName test2.com
ServerAdmin test@test2.com
ServerAlias www.test2.com
DocumentRoot /srv/www/test2
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/srv/www/test2">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/test2">
Options Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .html .htm .shtml .shtm
</Directory>
HostnameLookups Off
ErrorLog /srv/www/test2/logs/error_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /srv/www/test2/logs/access_log combined
ServerSignature On
ScriptAlias /cgi-bin/ "/srv/www/test2/cgi-bin/"
<Directory "/srv/www/test2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php
ErrorDocument 400 /error_pages/400.html
ErrorDocument 403 /error_pages/403.html
ErrorDocument 404 /error_pages/404.html
AccessFileName .htaccess
AddHandler cgi-script .cgi
<IfModule mod_negotiation.so>
<IfModule mod_include.so>
Alias /error/ "/srv/www/test2/error/"
<Directory "/srv/www/test2/error">
AllowOverride None
Options IncludesNoExec
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en
</Directory>
</IfModule>
</IfModule>
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot /xampp/xampp/htdocs
</VirtualHost>
http://wdguides.org - XAMPP Tutorials & MORE!!!!
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 134 guests