Page 1 of 1

sub domains ?

PostPosted: 19. August 2003 00:35
by ivan
can this be done ?

Re: sub domains ?

PostPosted: 20. August 2003 21:49
by Loic
ivan wrote:can this be done ?


Yes with Virtual host in http.conf (apache)

Related question (not your normal vhost)

PostPosted: 06. September 2003 22:12
by MAGnUm
yeh i have tried this before and cant get it to work with my setup... apache starts fine, but sub domains dont work. i use name based vhost on a dns name i get from servehttp.com so i am basically already on a subdomain. but if you read the docs a subdomain should alow for another subdomain below it. like my url is somesite.servehttp.com and i want mail.somesite.servehttp.com it should work, but it points to the wrong ip. any ideas? also i run a mail server on my server, and it runs on port 8080 its a self contained webmail server is it posible to use name based vhosting like mail.somesite.servehttp.com to point to somesite.servehttp.com:8080 ? :?: i have looked but don't think its possible :mrgreen:

Re: Related question (not your normal vhost)

PostPosted: 06. September 2003 22:51
by Apache-User
MAGnUm wrote:yeh i have tried this before and cant get it to work with my setup... apache starts fine, but sub domains dont work. i use name based vhost on a dns name i get from servehttp.com so i am basically already on a subdomain. but if you read the docs a subdomain should alow for another subdomain below it. like my url is somesite.servehttp.com and i want mail.somesite.servehttp.com it should work, but it points to the wrong ip. any ideas? also i run a mail server on my server, and it runs on port 8080 its a self contained webmail server is it posible to use name based vhosting like mail.somesite.servehttp.com to point to somesite.servehttp.com:8080 ? :?: i have looked but don't think its possible :mrgreen:


ok lets try this..
first of all u need wildcards enebled so that mail.somesite.servehttp.com works.... if ur provider does not allow that u shold switch to http://www.no-ip.com
geting apache to pint to port 8080 is easy just use the buildin proxy for that here an example

NameVirtualHost mail.somesite.servehttp.com:80

<VirtualHost mail.somesite.servehttp.comt:80>

ServerName mail.somesite.servehttp.com
ServerAlias mail.somesite.servehttp.com
ServerAdmin admin@domain.de

DocumentRoot /blabla/htdocs
CustomLog /blabla/log/access.log combined
ErrorLog /blabla/log/error.log

ProxyPass / http://mail.somesite.servehttp.com:8080/
ProxyPassReverse / http://mail.somesite.servehttp.com:8080/

</VirtualHost>

that should to it

greetz form germany

will try it and let you know

PostPosted: 09. September 2003 18:19
by MAGnUm
will try it and let you know thanks in advance

why do i still need this

PostPosted: 25. October 2003 00:44
by MAGnUm
Why is this stuff still needed if its just going to use the builtin proxy?

DocumentRoot /blabla/htdocs
CustomLog /blabla/log/access.log combined
ErrorLog /blabla/log/error.log

help

PostPosted: 11. November 2003 19:19
by MAGnUm
when i tried the example all it did was go to the document root i put in the vhost it didn't do the redirection like it should. any ideas?

here is more information

my mail server has a web interface of its own not related to apache. i would like to redirect to it via mail.myhost.servehttp.com but to get to the the mail server via the internet you must go to https://myhost.servehttp.com:23001. i realize it would be just as easy to make a regular vhost and put a script to redirect, but i want this to work.