Exclamation 403 forbidden for cgi-bin/ and cannot protect site with password

Posted by gasgdasdgasdg on Server Fault See other posts from Server Fault or by gasgdasdgasdg
Published on 2009-10-15T23:41:41Z Indexed on 2010/03/12 0:37 UTC
Read the original article Hit count: 387

Filed under:
|

First problem i have is i am getting 403 forbidden error for cgi-bin/

I have created a new /var/www2/ i can access it fine. php runs fine.

Second problem is I cannot password protect it. i first tried doing htpasswd, it asks for login but everytime i login it keeps asking for new one.

its getting frustrating, i have tried all tricks. and doesn't seem to work.

this is a virtual host config inside sites-available. httpd.conf is empty but i have apache2.conf

Code:

NameVirtualHost  12.12.12.12.
<VirtualHost  12.12.12.12>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www2/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www2/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /var/www2/cgi-bin/
        <Directory "/var/www2/cgi-bin/">
                AllowOverride Options
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                AddHandler cgi-script cgi pl
                Order allow,deny
                Allow from all
        </Directory>


        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

© Server Fault or respective owner

Related posts about apache2

Related posts about ubuntu