apache / mail question

Date August 30, 2003

I’m busy to configure my qube for mutiple domains. That’s working

The only thing which is questioning me is: e-mail is addressed to the servername: www.domain.com, so dennis@www.domain.com is the result when using ie. webmail.
Of course I can change the servername to: domain.com, but than HTML references do go wrong. Or a rewrite has to do the job, but I have no idea how to do this. Anyone?

2 Responses to “apache / mail question”

  1. jult said:

    domain’s container in httpd.conf
    (example, paths could differ with Qube o.s.):

    NameVirtualHost 192.168.1.8
    VirtualHost 192.168.1.8 (tussen haken)
    ServerName grifstate.com
    ServerAdmin dennis
    DocumentRoot /home/sites/home/web
    ServerAlias grifstate.com http://www.grifstate.com
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^192.168.1.8(:80)?$
    RewriteCond %{HTTP_HOST} !^www.grifstate.com(:80)?$
    RewriteCond %{HTTP_HOST} !^grifstate.com(:80)?$
    RewriteRule ^/(.*) http://www.grifstate.com/$1 [L,R]
    RewriteOptions inherit
    AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    /VirtualHost (tussen haken)

  2. jult said:

    be VERY careful though, the Qube databases, postgres etc. obtain their name info from httpd.conf

    you can completely mess them up, making a mistake in httpd.conf, so keep the original and always remember to make THAT version of httpd.conf active before you perform site-management-related tasks with the Qube webbased admin!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

After submitting a comment you can MODIFY it again by clicking the message or name

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word