RE: Neomail / Apache question

[email protected]
Newsgroups gmane.mail.neomail.general
Message-ID <003c01c317f5$04e99870$1b32ab40@grover>
yes its very possible. as someone just said, all you need to do is add a
virtualhost section. heres an example of say a site named www.foomail.com
-----------------------------------------------------
/etc/httpd/conf/httpd.conf:
-----------------------------------------------------
<VirtualHost *>        #listen on all addresses/ports for the request of...
        ServerName www.foomail.com        #any requests for
http://www.foomail.com/
        ServerAlias foomail.com        #and all requests for
http://foomail.com/ and http://another.foomail.com/ and http://spunky.com/
too
        DocumentRoot /var/www/
        ServerAdmin [email protected]
        DirectoryIndex cgi-bin/neomail.pl        #this is the special part
where when they ask for the document root (http://foomail.com/) it will dish
out this document. you can also add more files to this line and if the first
is not found, the second will be dished unless it is not found where then
the... etc.
        ServerSignature off
        HostNameLookups Off
        ErrorDocument 400 /errordocs/400.htm
        ErrorDocument 401 /errordocs/401.htm
        ErrorDocument 403 /errordocs/403.htm
        ErrorDocument 404 /errordocs/404.htm
        ErrorDocument 500 /cgi-bin/500.pl

<Directory />        #everything in between these tags apply to /var/www AKA
http://foomail.com/ and http://foomail.com/ and http://another.foomail.com/
and http://spunky.com/
        Options ExecCGI        #lets cgis be executed
        AllowOverride None
        AddHandler cgi-script .cgi .pl        #all files ending with .cgi or
.pl will be treated at CGIs.
        Order allow,deny
        Allow from all
</Directory>

</VirtualHost>
---------------------------------------------------
okay i think thats about it. your question was probably more directed
twoards the DirectoryIndex cgi-bin/neomail.pl part but ho well. just let me
know if you have any more questions about vitual hosting.

-grover



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.