Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Virtual Host with WinXP SP2
Google
Post new topic Reply to topic
Author Message
slowrock
 
 


Joined: 05 May 2006
Posts: 2

PostPosted: Fri May 05, 2006 7:54 pm Reply with quoteBack to top

Hello everybody.

I have this problem.
I set ip-based and name-based virtual host to httpd.conf like this:
right after :
#server config
ServerName localhost:80
ServerAdmin admin@localhost

Code:


#################### DONIE #####################

Alias /phpinfo.php C:/apache2triad/htdocs/phpinfo.php

### LOCALHOST ###

<VirtualHost 127.0.0.1>
    ServerAdmin admin@localhost
    DocumentRoot "C:/apache2triad/htdocs"
    ServerName localhost:80
    ErrorLog logs/error.log
    CustomLog logs/access.log combined
</VirtualHost>

### SILVIE.KU ###

<Directory "D:/www/htdocs/cgi-bin">
    AllowOverride None
    Options +ExecCGI
    SetHandler cgi-script
    Order allow,deny
    Allow from all
</Directory>

#htdocs config
<Directory "D:/www/htdocs">
Options Indexes FollowSymLinks +Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

NameVirtualHost 127.0.0.2

<VirtualHost 127.0.0.2>
    ServerAdmin donie@silvie.ku
    DocumentRoot "D:/www/htdocs"
    ServerName silvie.ku
    ServerAlias silvie.ku www.silvie.ku
    ErrorLog logs/silvie.ku-error.log
    CustomLog logs/silvie.ku-access.log combined
</VirtualHost>

<VirtualHost 127.0.0.2>
    ServerAdmin donie@silvie.ku
    DocumentRoot "D:/www/htdocs/uebimiau"
    ServerName webmail.silvie.ku
    ErrorLog logs/webmail.silvie.ku-error.log
    CustomLog logs/webmail.silvie.ku-access.log combined
</VirtualHost>

<VirtualHost 127.0.0.2>
    ServerAdmin donie@silvie.ku
    DocumentRoot "D:/www/htdocs/projects"
    ServerName projects.silvie.ku
    ErrorLog logs/projects.silvie.ku-error.log
    CustomLog logs/projects.silvie.ku-access.log combined
</VirtualHost>



### GETAMPED.GRAVITASI.COM ###

#htdocs config
<Directory "D:/www/htdocs/getamped">
Options Indexes FollowSymLinks +Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<VirtualHost 127.0.0.3>
    ServerAdmin admin@gravitasi.com
    DocumentRoot "D:/www/htdocs/getamped"
    ServerName getamped.gravitasi.com:80
    ErrorLog logs/getamped.gravitasi.com-error.log
    CustomLog logs/getamped.gravitasi.com-access.log combined
</VirtualHost>



### BARADUS.COM ###

#cgi-bin nya baradus.com
<Directory "D:/www/VHOST/baradus.com/cgi-bin">
    AllowOverride None
    Options +ExecCGI
    SetHandler cgi-script
    Order allow,deny
    Allow from all
</Directory>

#htdocs config
<Directory "D:/www/VHOST/baradus.com">
Options Indexes FollowSymLinks +Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

NameVirtualHost 127.0.0.4

<VirtualHost 127.0.0.4>
    ServerAdmin donie@baradus.com
    DocumentRoot "D:/www/VHOST/baradus.com"
    ServerName baradus.com
    ServerAlias baradus.com www.baradus.com
    ErrorLog logs/baradus.com-error.log
    CustomLog logs/baradus.com-access.log combined
</VirtualHost>

<VirtualHost 127.0.0.4>
    ServerAdmin donie@baradus.com
    DocumentRoot "D:/www/VHOST/baradus.com/uebimiau"
    ServerName webmail.baradus.com
    ErrorLog logs/webmail.baradus.com-error.log
    CustomLog logs/webmail.baradus.com-access.log combined
</VirtualHost>



and the host file on C:\WINDOWS\system32\drivers\etc\ like this:

Code:


127.0.0.1       localhost

127.0.0.2       silvie.ku
127.0.0.2       www.silvie.ku
127.0.0.2       webmail.silvie.ku
127.0.0.2       projects.silvie.ku
127.0.0.2       mail.silvie.ku
127.0.0.2       smtp.silvie.ku

127.0.0.3       getamped.gravitasi.com

127.0.0.4       baradus.com
127.0.0.4       www.baradus.com
127.0.0.4       mail.baradus.com
127.0.0.4       smtp.baradus.com
127.0.0.4       webmail.baradus.com



The configuration works on WinXP without Service Pack.
If I installed Service Pack 2, the configuration did not work.
I've tried to disable the Firewall but I got nothing.
Any help will be appreciated.
Thanks in advance.


Ups, sorry. after searching on this forum, I'd found that this is Apache problem with XP SP2, right?
Thanks.
View user's profileSend private message
cigraphics
 
 


Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

PostPosted: Wed May 24, 2006 12:13 pm Reply with quoteBack to top

this is my configuration and it works perfect:

Code:

# The error Page

NameVirtualHost 86.104.20.20

<VirtualHost 86.104.20.20>
    DocumentRoot D:\server\apache2triad\htdocs\hosting\error.ci.kz.ro
</VirtualHost>

# htdocs\

<VirtualHost 86.104.20.20>
    ServerAdmin admin@ci.kz.ro
    DocumentRoot D:\server\apache2triad\htdocs\uebimiau
    ServerName mail.ci.kz.ro
    ErrorLog logs/mail.ci.kz.ro-error_log.log
    CustomLog logs/mail.ci.kz.ro-access_log.log common
</VirtualHost>



#htdocs\hosting\

<VirtualHost 86.104.20.20>
    ServerAdmin admin@ci.kz.ro
    DocumentRoot D:\server\apache2triad\htdocs\hosting\ci.kz.ro
    ServerName www.ci.kz.ro
    ServerAlias ci.kz.ro
    ErrorLog logs/ci.kz.ro-error_log.log
    CustomLog logs/ci.kz.ro-access_log.log common
    DirectoryIndex index.html index.php index.cgi index.wml index.pl index.cigraphics index.cig
</VirtualHost>

<VirtualHost 86.104.20.20>
    ServerAdmin admin@ci.kz.ro
    DocumentRoot D:\server\apache2triad\htdocs\hosting\ci.kz.ro
    ServerName www.ci.kb
    ServerAlias ci.kb
    ErrorLog logs/ci.kb-error_log.log
    CustomLog logs/ci.kb-access_log.log common
    DirectoryIndex index.html index.php index.cgi index.wml index.pl
</VirtualHost>

<VirtualHost 86.104.20.20>
    ServerAdmin admin@ci.kz.ro
    DocumentRoot D:\server\apache2triad\htdocs\hosting\design.ci.kz.ro
    ServerName www.design.ci.kz.ro
    ServerAlias design.ci.kz.ro
    ErrorLog logs/design.ci.kz.ro-error_log.log
    CustomLog logs/design.ci.kz.ro-access_log.log common
</VirtualHost>


and in C:\windows\system32\drivers\etc\hosts
Code:

127.0.0.1       localhost
86.104.20.20 www.ci.kz.ro
86.104.20.20 ci.kz.ro
86.104.20.20 www.ci.kb
86.104.20.20 ci.kb
86.104.20.20 mail.ci.kz.ro
86.104.20.20 www.design.ci.kz.ro
86.104.20.20 ci.kz.ro


my address can be accessed from outside because i have IP redirect from the internet provider and i added the addresses in hosts to work when the net is down
View user's profileSend private messageSend e-mailYahoo Messenger
libra01
 
 


Joined: 29 Jun 2006
Posts: 3

PostPosted: Thu Jun 29, 2006 5:12 pm Reply with quoteBack to top

Please help me to fix my configuration.

Code:
NameVirtualHost *

<VirtualHost 192.168.100.52:80>
    ServerAdmin admin@localhost
    DocumentRoot E:/WEB/
    ServerName www.webku.com
    ServerAlias webku.com
    DirectoryIndex index.html index.php index.htm index.php3
    ErrorLog c:/apache2triad/logs/webku-error-logs.log
    CustomLog c:/apache2triad/logs/webku-access-log.log combined
</VirtualHost>


and the result is

Code:

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403


I use :
OS Windows XP SP 2
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT