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
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 Admin@site1.com

    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 Admin@site2.com

    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 Admin@site3.com

    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
Share on other sites

still no joy.i seem to still be gettin the same error with site3.com (error logs and see options ExecCGI is off in this directory)

Just dont understand why site1.com runs scirpts but not site3.com,as you can see they both have options ExecCGI there..

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.