httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward...@ita.org.mo
Subject Re: Problem about hostname + domain
Date Wed, 31 Jul 2002 09:08:22 GMT
Hello,

I just got a function with php from a netfriend :
created index.php with this line :
<?header("location: http://www.domain.com");?>

So, I want to know which setting is the best !

Thank for your help !

Edward.

Robert Andersson wrote:

> EdwardSPL@ita.org.mo wrote:
>
> > Hello,
> >
> > Do you know how to add the following function into httpd.conf ?
> > When user type http://domain.com , then the web server will auto direct
> > to http://www.domain.com ?
>
> http://httpd.apache.org/docs/mod/core.html#serveralias
>
> Try this (based on the previous config):
>
> <VirtualHost 192.168.200.1:80>
>     DocumentRoot "/usr/local/apache/htdocs"
>     ServerName mydomain.com
>     ServerAlias www.mydomain.com *.mydomain.com
>     ServerAdmin root@mydomain.com
>     ErrorLog /usr/local/apache/logs/error_log
>     TransferLog /usr/local/apache/logs/access_log
> </VirtualHost>
>
> Note the ServerAlias, and remove the *.mydomain.com if you want
>
> Regards,
> Robert Andersson
>
> >
> > Thank for your help !
> >
> > Edward.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message