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 [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 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... 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
Archived
This topic is now archived and is closed to further replies.