Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ViewCVS - Apache misconfigured?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
edhel
n00b
n00b


Joined: 30 Mar 2005
Posts: 27

PostPosted: Tue Feb 14, 2006 8:33 am    Post subject: [SOLVED] ViewCVS - Apache misconfigured? Reply with quote

Hello,

Trying to get ViewCVS to work, I added the two ScriptAlias lines in httpd.conf like recommended:
Code:
ScriptAlias /viewcvs /var/www/localhost/cgi-bin/viewcvs/viewcvs.cgi
ScriptAlias /cvsquery /var/www/localhost/cgi-bin/viewcvs/cvsquery.cgi


I also modified /var/www/localhost/viewcvs/viewcvs.conf to suit my needs.

When I browse http://localhost/viewcvs, I get the raw python file displayed: /var/www/localhost/cgi-bin/viewcvs/viewcvs.cgi

I guess this is an Apache config problem, I tried to emerge mod_python and added -D PYTHON to /etc/conf.d/apache2, but that didn't do the trick. What did I miss?


Last edited by edhel on Fri Feb 17, 2006 9:03 am; edited 1 time in total
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Tue Feb 14, 2006 11:16 am    Post subject: Reply with quote

You'd need to enable CGI-programs to be executed in the specific directories. Since you don't have that it just send the raw script in plain text to the client.
_________________
Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved.
Back to top
View user's profile Send private message
edhel
n00b
n00b


Joined: 30 Mar 2005
Posts: 27

PostPosted: Tue Feb 14, 2006 4:14 pm    Post subject: Reply with quote

But Apache is supposed to consider all files in a ScriptAlias directory as scripts, and doesn't need any Options ExecCGI directive, if that's what you meant.
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Wed Feb 15, 2006 4:29 pm    Post subject: Reply with quote

edhel wrote:
But Apache is supposed to consider all files in a ScriptAlias directory as scripts, and doesn't need any Options ExecCGI directive, if that's what you meant.


That might be the case but getting the script in plain text still means it's not considered a CGI-program which executes properly.
_________________
Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved.
Back to top
View user's profile Send private message
edhel
n00b
n00b


Joined: 30 Mar 2005
Posts: 27

PostPosted: Fri Feb 17, 2006 9:02 am    Post subject: Reply with quote

This is what was missing from my apache config:

Code:
LoadModule cgi_module          modules/mod_cgi.so
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Fri Feb 17, 2006 9:57 am    Post subject: Reply with quote

edhel wrote:
This is what was missing from my apache config:

Code:
LoadModule cgi_module          modules/mod_cgi.so


:D
_________________
Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum