You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Morten Trydal <mo...@losmail.no> on 2007/02/09 01:56:40 UTC
[users@httpd] apache with mod_aspdotnet - vhosts
Hello.
I have a problem getting virtual hosts working properly.
My vhosts file looks like this, which I think should be correct, although
I'm a programmer and not a server guy. Domain names are as you probably can
see renamed for this post.
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "c:/website"
ServerName www.site1.com:80
ServerAlias site1.com www.site1.com
ErrorLog logs/site1-error_log
CustomLog logs/site1-access_log common
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wapsite"
ServerName wap.site1.com:80
ServerAlias wap.site1.com
ErrorLog logs/site1_wap-error_log
CustomLog logs/site1_wap-access_log common
</VirtualHost>
Now onto what I think is my problem. What on earth to I write for
AspNetMount / "c:/website" and
AspNetMount / "c:/wapsite" ?
Obviously I can't set / for both of them, but I want to be able to type
www.site1.com as well as wap.site1.com into the browser and have the
addresses stay there.
Any tips for me? Thanks.
Best regards,
Morten
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] apache with mod_aspdotnet - vhosts
Posted by Morten Trydal <mo...@losmail.no>.
Thanks to William and Joshua it's working now.
Being a apache novice isn't easy :-)
The solution makes sense to me when they're put inside the virtualhost tags,
but it didn't when I was thinking about putting them into the httpd.conf
file. Having / refer to two different folders just didn't make sense to me.
Guess it's all about the context, wasn't obvious after all, my bad.
Thanks again,
Morten
Morten Trydal wrote:
> Hello.
>
> I have a problem getting virtual hosts working properly.
>
> My vhosts file looks like this, which I think should be correct,
> although I'm a programmer and not a server guy. Domain names are as
> you probably can see renamed for this post.
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
> DocumentRoot "c:/website"
> ServerName www.site1.com:80
> ServerAlias site1.com www.site1.com
> ErrorLog logs/site1-error_log
> CustomLog logs/site1-access_log common </VirtualHost>
>
> <VirtualHost *:80>
> DocumentRoot "c:/wapsite"
> ServerName wap.site1.com:80
> ServerAlias wap.site1.com
> ErrorLog logs/site1_wap-error_log
> CustomLog logs/site1_wap-access_log common </VirtualHost>
>
> Now onto what I think is my problem. What on earth to I write for
> AspNetMount / "c:/website" and AspNetMount / "c:/wapsite" ?
Drop each correct aspnetmount into it's corresponding VirtualHost and we
would expect all to be well. Right? Normally you would have a
corresponding alias, but in this case, your DocumentRoot should solve that
issue.
> Obviously I can't set / for both of them, but I want to be able to
> type www.site1.com as well as wap.site1.com into the browser and have
> the addresses stay there.
Obviously?
> Any tips for me? Thanks.
Hope the hint helps.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] apache with mod_aspdotnet - vhosts
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Morten Trydal wrote:
> Hello.
>
> I have a problem getting virtual hosts working properly.
>
> My vhosts file looks like this, which I think should be correct, although
> I'm a programmer and not a server guy. Domain names are as you probably can
> see renamed for this post.
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
> DocumentRoot "c:/website"
> ServerName www.site1.com:80
> ServerAlias site1.com www.site1.com
> ErrorLog logs/site1-error_log
> CustomLog logs/site1-access_log common
> </VirtualHost>
>
> <VirtualHost *:80>
> DocumentRoot "c:/wapsite"
> ServerName wap.site1.com:80
> ServerAlias wap.site1.com
> ErrorLog logs/site1_wap-error_log
> CustomLog logs/site1_wap-access_log common
> </VirtualHost>
>
> Now onto what I think is my problem. What on earth to I write for
> AspNetMount / "c:/website" and
> AspNetMount / "c:/wapsite" ?
Drop each correct aspnetmount into it's corresponding VirtualHost and
we would expect all to be well. Right? Normally you would have
a corresponding alias, but in this case, your DocumentRoot should
solve that issue.
> Obviously I can't set / for both of them, but I want to be able to type
> www.site1.com as well as wap.site1.com into the browser and have the
> addresses stay there.
Obviously?
> Any tips for me? Thanks.
Hope the hint helps.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] apache with mod_aspdotnet - vhosts
Posted by Joshua Slive <jo...@slive.ca>.
On 2/8/07, Morten Trydal <mo...@losmail.no> wrote:
> Now onto what I think is my problem. What on earth to I write for
> AspNetMount / "c:/website" and
> AspNetMount / "c:/wapsite" ?
>
> Obviously I can't set / for both of them, but I want to be able to type
> www.site1.com as well as wap.site1.com into the browser and have the
> addresses stay there.
I know nothing about mod_aspdotnet, but the obvious answer would be to
put each, just as written above, inside the relevant <VirtualHost>
block.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org