Finally asking fopr help with vhost

Discussion in 'Apache' started by beyondunow, Aug 31, 2007.

  1. #1
    Hey all, first post.. I wanted to figure this out myself but its taking way too long. I have 2 domains I want to host on my XP box with apache. Im trying to configure 1 for port 83 and 84 for the second.

    Im having no problems with the redirect (no-ip) or anything, but I cant seem to get both domain live at the same time. The first domain works fine, but the second gives an 403 error message:

    You don't have permission to access / on this server.

    :

    If someone could please look it over and tell me what I could be doing wrong....im POSITIVE its just a configuration error. Thank you ahead of time!

    Config Notes:

    Listen 192.168.1.100:83
    Listen 192.168.1.100:84

    Include conf/extra/httpd-vhosts.conf IS UNcommented

    LoadModule vhost_alias_module modules/mod_vhost_alias.so IS UNcommented


    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
    </Directory>

    <Directory "D:/wamp/www/okcc">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    <Directory "D:/wamp/www/Ex7">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>


    Vhost directive located in http.conf AND httpd vhost.conf


    NameVirtualHost okcc.org

    <VirtualHost *:83>
    UseCanonicalName off
    ServerName okcc.org
    ServerAlias www.okcc.org
    ServerAdmin myemail@yaddayadda
    DocumentRoot "/wamp/www/okcc"
    ScriptAlias /cgi-bin/ "D:/wamp/Apache2/cgi-bin/"
    ErrorLog logs/okcc/error.log
    CustomLog logs/okcc/access.log common
    CustomLog logs/okcc/referer.log referer
    CustomLog logs/okcc/agent.log agent
    ServerSignature Off
    </VirtualHost>


    NameVirtualHost site2.com

    <VirtualHost *:84>
    UseCanonicalName off
    ServerName site2.com
    ServerAlias www.site2com
    ServerAdmin myemail@.....com
    DocumentRoot "/www/Ex7"
    ScriptAlias /cgi-bin/ "D:/wamp/Apache2/cgi-bin/"
    ErrorLog logs/Ex7/error.log
    CustomLog logs/Ex7/access.log common
    CustomLog logs/Ex7/referer.log referer
    CustomLog logs/Ex7/agent.log agent
    ServerSignature Off
    </VirtualHost>



    That should be enough. Let me know if I can answer any questions on the config. Hate asking for help, but this is the first time ive used vhost. Thanks.
     
    beyondunow, Aug 31, 2007 IP