agirman Posted November 29, 2008 Share Posted November 29, 2008 I have been trying unsuccessfully for hours now to configure my apache server (v.2.0.63) to run a wiki system under a separate subdomain, but have been having a lot of difficulty. I was wondering if anyone knew why I should be seeing certain symptoms: going to http://wiki.mydomain.com:9500 redirects me to http://wiki.mydomain.com:9500/moin.cgi/ (note the trailing slash), which results in: Forbidden You don't have permission to access /moin.cgi/ on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Additionally, a quick check of the log says: [sat Nov 29 12:24:22 2008] [error] [client 10.0.1.150] (13)Permission denied: access to /moin.cgi denied My goal is to have the wiki running under root ("/") so that the name of the script doesn't show up in the url (wiki.mydomain.com/wiki is redundant, after all); so I need to solve: (1) the redirection to moin.cgi (or at least suppress it in the url), and (2) this permission problem. As far as permissions go, the directory housing moin.cgi should be properly set: $ ls -ltr /home/agirman/Documents/Wikis/myWiki/cgi-bin -rwxrwxrwx 1 httpd root 1146 2008-11-29 01:54 moin.cgi The apache user is "httpd". From the error log, it would appear that it's looking for it in root on the file system for some reason (which would certainly explain the permission problem). What can I do? Here is my conf file: Listen 9500 NameVirtualHost 10.0.1.150:9500 <Directory "/home/agirman/Documents/Wikis/myWiki/cgi-bin"> Order deny,allow Allow from all </Directory> <VirtualHost 10.0.1.150:9500> ServerName wiki.mydomain.com ServerAdmin admin@mydomain.com ErrorLog /usr/local/apache2/logs/wiki.error.log TransferLog /usr/local/apache2/logs/wiki.access.log Alias /wiki "/usr/share/moin/htdocs/" Alias /favicon.ico "/usr/share/moin/htdocs/favicon.ico" ScriptAlias / "/home/agirman/Documents/Wikis/myWiki/cgi-bin/" <Location /> AuthType Basic AuthName "Wiki" AuthUserFile /etc/wiki-auth-file Require valid-user Order deny,allow Allow from all </Location> </VirtualHost> Does anyone have any ideas? Thank you, Alex. Quote Link to comment 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.