Jump to content

VirtualHost Issue


GUKPT

Recommended Posts

Hi all.really hope someone can help me here..

I have 3 sites in my vhost

site1.com

site2.com

site3.com

 

when i try my local ip to the server 192.162 etc it loads up site1.com ok with runnin scirpts

when i try same thing local i192.168etc/site2.com its loads up fine all html pages an not runnin any scirpts on this 1..

when i try same 192.168etc/site3.com i get forbiddon.i look in the error logs and see options ExecCGI is off in this directory but i know i have it on..site 1 and 3 are runnin the same scirpts and i have set then up the same. does anyone know whats goin on.do i have to put something dif in site3.com to run scirpts aswell and site1.com

Link to comment
https://forums.phpfreaks.com/topic/133063-virtualhost-issue/
Share on other sites

#

# 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

# <URL:http://httpd.apache.org/docs/2.2/vhosts/>

# 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 <VirtualHost> block.

#

 

 

<VirtualHost *:80>

    ServerAdmin [email protected]

    DocumentRoot "C:/wwws/forum"

    ServerName site1.com

    ServerAlias www.site1.com

<Directory "C:/wwws/forum">

    Options FollowSymLinks

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory>

    ScriptAlias /cgi-bin "c:/wwws/forum/Yabb2/cgi-bin/yabb2"

<Directory "c:/wwws/forum/Yabb2/cgi-bin/yabb2">

    AllowOverride all

    Options +ExecCGI

    AddHandler cgi-bin .cgi ,pl

    Order allow,deny

    Allow from all

</Directory>

</VirtualHost>

 

<VirtualHost *:80>

    ServerAdmin [email protected]

    DocumentRoot "C:/wwws/forum/site2.com"

    ServerName site2.com

    ServerAlias www.site2.com

<Directory "c:/wwws/forum/site2.com/">

    Options FollowSymLinks

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory>

</Virtualhost>

 

<VirtualHost *:80>

    ServerAdmin [email protected]

    DocumentRoot "C:/wwws/forum/site3.com"

    ServerName site3.com

    ServerAlias www.site3.com

<Directory "C:/wwws/forum/site3.com">

    Options FollowSymLinks

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory>

    ScriptAlias /cgi-bin "c:/wwws/forum/site3.com/Yabb2/cgi-bin/yabb2"

<Directory "c:/wwws/forum/site3.com/Yabb2/cgi-bin/yabb2">

    AllowOverride all

    Options +ExecCGI

    AddHandler cgi-bin .cgi ,pl

    Order allow,deny

    Allow from all

</Directory>

</VirtualHost>

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/133063-virtualhost-issue/#findComment-692008
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.