LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2010, 02:07 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032

Quote:
But my index is in the cgi-bin, not in /var/www/html/
What? Can you explain that? From the vhost configuration you've posted there is no such thing

Quote:
[Tue Jun 22 05:39:26 2010] [error] [client 198.96.35.78] Directory index forbidden by Options directive: /var/www/html/
[Tue Jun 22 05:39:26 2010] [error] [client 198.96.35.78] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/error/noindex.html
Are you using any rewrite rules?
What is the apache general DocumentRoot? If it's /var/www/html, changing the DocumentRoot for the vhost to /var/www is not going to work, because by default apache forbids access to the directories above the DocumentRoot
If it's correct, add
Code:
Options +Indexes
or create an index.html page.
 
Old 06-22-2010, 04:08 PM   #17
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
Quote:
Originally Posted by bathory View Post
What? Can you explain that? From the vhost configuration you've posted there is no such thing
I have a perl script, so the index.cgi is in the /var/www/cgi-bin/


The vhost for my site is :

<VirtualHost *>
ServerName domain.net
ServerAlias www.domain.net
DocumentRoot /var/www
ServerAdmin support@domain.net
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</VirtualHost>
 
Old 06-22-2010, 04:46 PM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you want to use index.cgi as an index page, then you need some changes in your vhost definition:
Code:
<VirtualHost *>
ServerName domain.net
ServerAlias www.domain.net
DocumentRoot /var/www/cgi-bin
DirectoryIndex index.cgi
ServerAdmin support@domain.net
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</VirtualHost>
 
Old 06-22-2010, 05:31 PM   #19
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
but this vhost is the template for the default setup of the site, non-ssl, so how comes it doesnt work with sSL its the same directory? I will try your way now.

<VirtualHost *>
ServerName domain.net
ServerAlias www.domain.net
DocumentRoot /var/www
ServerAdmin support@domain.net
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</VirtualHost>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux-ftpd-ssl 0.17 installation noops Fedora 3 04-29-2010 12:44 AM
ssl installation gone sour? Jalalabee Linux - Software 5 12-11-2003 05:48 AM
Gaim SSL Support Installation - Anyone know how ? RIOMX Linux - Software 6 11-13-2003 07:36 AM
rpm installation of ssl chuck77 Linux - General 1 11-01-2002 09:39 AM
ssl installation RecoilUK Linux - Software 7 12-28-2001 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration