Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache 2.0.40 HELP- Configuring CGI in User's Public HTML ..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  setting up Apache Server - using SUSE 9.0 Profess..  
Author Message
arthur1

External


Since: Feb 29, 2004
Posts: 1



(Msg. 1) Posted: Sun Feb 29, 2004 5:50 am
Post subject: Apache 2.0.40 HELP- Configuring CGI in User's Public HTML Directory
Archived from groups: alt>apache>configuration (more info?)

Wondering if anyone could shed any light on this.

httpd.conf:
UserDir public_html
UserDir disabled root
Alias /artstest /my/directory/structure/art/public_html
<Directory "/my/directory/structure/art/public_html">
Options All
AllowOverride All
</Directory>

..htaccess file in public_html:
AddHandler cgi-script cgi pl
Options +ExecCGI

test.pl in public_html
#!/usr/bin/perl
use CGI qw (:standard);
print header,start_html,'hello',end_html;

When I access the file using http://domain/artstest/test.pl, I get the
correct output. When I access the file using http://domain/~art/test.pl, I
get a server error 500 with "Premature end of script headers" error in the
error log.

All directory and file permission are correct and the script functions
properly as evidenced by the output using the Aliased directory. I can't
get scripts to run accessing the files using the ~name convention.

Any help is appreciated.

Arthur

 >> Stay informed about: Apache 2.0.40 HELP- Configuring CGI in User's Public HTML .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache HTML Header Injection - Hi, Does anyone know of a way that I can inject some html code into the header of every html document requested from my Linux Apache Web Server. I am developing a very simple PHP/Mysql company intranet and would like an easy way to insert the company..

Apache not displaying index.html.en - Hey all, Just installed Apache 2. When i type http://server/manual - i get a 404 If i type http://server/manual/index.html.en it works, and shows the index page. Also, any link from the index page fails, because the links are to ..html but the files..

apache index.html column width - Hi, is there any way I can increase the width of the "name" column in an apache dir listing? When I have files with long names, it truncates it to about 20 characters, i.e. "this is a long filena....." kind of idea I'd just like to...

Apache 2.0: Cannot automatically server index.html - I am running 2.0.40 on Redhat 8.0 and I cannot get the server display the index.html when I go to http://www.mydomain.com. Instead, I get the If I specify http://www.mydomain.com/index.html, then the page is returned properly. I first tried configuring....

Apache User Config - I hate to ask this question twice, but I'm STILL stumped on this one, and I've tried everything. I am running apache 2.0 under the username 'apache' and group 'apache'. I am trying to set up a NameVirtualHost under my home directory /home/john/web/www....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]