Results 1 to 4 of 4
  1. #1

    Default Multiple domains - multiple cgi-bin directories?

    I am running one web site on WestHost, it uses

    /var/www/html/ for the data

    and

    /var/www/cgi-bin/

    for the cgi scripts.

    I am going to add another domain, and I want that domain to use a separate cgi-bin directory. How can I establish another cgi-bin for that domain, and configure the domain to use that directory?

    Thank you!

  2. #2
    Senior Member jalal's Avatar
    Join Date
    May 2003
    Location
    Germany
    Posts
    1,377

    Default

    You would enter the details in the Virtual Server section of your Apache configuration.
    Like:
    ScriptAlias /cgi-bin /var/www/cgi-bin2

    HTH

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    Sacramento California
    Posts
    64

    Default

    Quote Originally Posted by jalal
    You would enter the details in the Virtual Server section of your Apache configuration.
    Like:
    ScriptAlias /cgi-bin /var/www/cgi-bin2

    HTH
    I think your right, But wouldn't you have to name the second cgi-bins like ScriptAlias /cgi-bin2 /var/www/cgi-bin2 or the script wouldn't know which one to use. This is actually a question?


    Charlie

  4. #4
    Senior Member jalal's Avatar
    Join Date
    May 2003
    Location
    Germany
    Posts
    1,377

    Default

    No, cause it would apply to that virtual server.
    i.e.

    http://domain1.com/cgi-bin = /var/www/cgi-bin
    http://domain2.com/cgi-bin = /var/www/cgi-bin2

    Disclaimer: I haven't tried this, but thats how I would do it.

Similar Threads

  1. additional domains with own cgi bin
    By justus in forum CGI Scripts / Perl
    Replies: 3
    Last Post: 03-01-2007, 08:29 AM
  2. Multiple BBs for multiple domains?
    By WolfStar76 in forum PHP / MySQL
    Replies: 3
    Last Post: 01-18-2005, 07:32 PM
  3. Multiple Email Accounts with Multiple Domains
    By richardz in forum Comments / Suggestions
    Replies: 12
    Last Post: 08-05-2004, 11:20 AM
  4. multiple emails multiple domains - 1 vps
    By justus in forum General Discussion
    Replies: 5
    Last Post: 01-19-2004, 09:19 AM
  5. Hosting Packagages and Multiple Domains
    By web1x in forum Domain names & DNS
    Replies: 1
    Last Post: 09-20-2003, 05:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •