Jump to content

Cannot get access to new directory


achild

Recommended Posts

I have added a new directory to my web server.  I.E cgi-bin-resell

 

In my httpd.conf file I have added this:

 

<VirtualHost 155.155.155.155:80>

  ServerName www.someserver.com

    RewriteEngine On

    RewriteCond %{SERVER_PORT} !^443$

    RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]

  DocumentRoot /var/www/htdocs-server/

  ScriptAlias /cgi-bin /var/www/htdocs-server/cgi-bin

  ScriptAlias /cgi-bin-resell/ /var/www/htdocs-server/cgi-bin-resell/

  Options Includes

  ErrorLog /var/log/httpd/server-error_log

  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""

  TransferLog /var/log/httpd/server-access_log

  ServerAdmin [email protected]

</VirtualHost>

 

And a <directory> tag like this:

 

<Directory /var/www/htdocs-server/cgi-bin-resell/>

AllowOverride None

Options Includes

AuthType Basic

AuthName 'Login'

AuthDBMUserFile /var/www/auth_server_server

AuthDBMGroupFile /var/www/auth_server_server

  <Limit GET POST>

    require valid-user

  </Limit>

</Directory>

 

Is the above correct when I try to access from a browser I continue to get 404 not found.  Anyone have any ideas?

 

Thanks

Amer

 

Link to comment
https://forums.phpfreaks.com/topic/85043-cannot-get-access-to-new-directory/
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.