suexec with mod_dir
I have enable mod_dir on my server.
It work fine for me following i had added in httpd conf:
<IfModule mod_userdir.c>
#UserDir disable
UserDir public_html
</IfModule>
<Directory /home/*/public_html>
Options Indexes Includes +FollowSymLinks +ExecCGI
AllowOverride All
Order deny,allow
Allow from all
AddHandler cgi-script .cgi .pl .plx .ppl .perl
</Directory>
I had done this settings for access:
http:\\mydomain.com\~user
It shows my user dir content. and i can run php and perl file also.
But when I access http:\\mydomain.com\demo.cgi(perlfile).
It gives me 500 internal error.
But when I run http:\\mydomain.com\~user\demo.cgi it allowed.
I want to access my perl file as http:\\mydomain.com\demo.cgi.
what more settings i have to make?
Shoud i have to add Alias?
Last edited by adam_1784; 02-02-2012 at 01:51 AM.
|