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 webmaster@server.com

</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
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.