I run proxy sites and have installed mod_perl, but i need some advice to get it configured correctly to run the scripts.
i have built and installed mod_perl
i have added to httpd.conf, to start the module
LoadModule perl_module /usr/lib/httpd/modules/mod_perl.so
following the configure how to it says to add this code to the httpd.conf, then create a directory “perl” where to place the scripts to run mod_perl?
Alias /perl/ /var/www/perl/
Allow from all
not sure about the path in the code to the new directory where the perl/cgi scripts will be placed to work with mod_perl??
Anything needed to be added to /etc/httpd/conf.d/domain.conf or any where else ?
i have read the documents “how to” but lost at this point, any help appreciated
[QUOTE=bear;10393]not sure about the path in the code to the new directory where the perl/cgi scripts will be placed to work with mod_perl??
Anything needed to be added to /etc/httpd/conf.d/domain.conf or any where else ?[/QUOTE]
If you put that block in the httpd.conf, then every site will have /perl as an alias, and every site will be able to access the perl scripts in /var/www/perl/ (assuming /var/www/perl and the scripts within are accessible by Apache itself). If this is what you want, then any directory you choose should be fine.
If you want to enable mod_perl for only certain sites, I would move this config block to /etc/httpd/conf.d/domain.com.conf, and you’ll need to update the path (and corresponding permissions) to a directory within the domain.com webroot.
Hope that helps,
only need this working for one domain/script really, but could not get it to work.
will have another read of the docs and try again.
thanks for your reply, appreciated