Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Running Perl scripts from a single CGI-BIN, on a multiple-virtual hosting server

by traveler (Parson)
on Oct 02, 2001 at 18:20 UTC ( [id://116133]=note: print w/replies, xml ) Need Help??


in reply to Running Perl scripts from a single CGI-BIN, on a multiple-virtual hosting server

I agree with what Masem said, but I'd create one config file per virtual domain or virtual host. That way if you move one domain to another host, it is easy to move its config file rather than editing a big one. I agree that XML is the way to go, both for readability and for maintainability. Something like the following might be a start:
<config vhost="my.virtual.hostname"> <script name="some_script.pl"> <logfile name="/wherever/some_log" /> etc </script> <script name="another_script.pl"> etc </script> </config>
Check CPAN for some modules that help you parse XML. I especially like XML::Simple for config files.
HTH, --traveler

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://116133]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-29 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found