achild Posted January 8, 2008 Share Posted January 8, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85043-cannot-get-access-to-new-directory/ Share on other sites More sharing options...
monkeytooth Posted January 13, 2008 Share Posted January 13, 2008 don't quote me on this, I didnt look it over 100% but from what I remember when I was running my own server.. the <directory> settings should be within the <virtualhost> settings... Quote Link to comment https://forums.phpfreaks.com/topic/85043-cannot-get-access-to-new-directory/#findComment-438388 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.