Questions tagged [mod-vhost-alias]
36 questions
0
votes
1 answer
Apache vhost_alias
I have a question about vhost_alias
I got it working, it does the following job:
vhost.subdomain.domain.com -> sends to /var/www/vhost
using virtualdocumentroot and %1
But I don't like that I can access the same content also like…

user2042985
- 95
- 1
- 1
- 9
0
votes
2 answers
Apache Multiple VirtualDocumentRoot for Single Wildcard domain *.dev
I'm working with Virtualhosts and a local catch-all domain TLD and I need 3 use-cases to work simultaneously, but so far, I've only been able to get two to work at a time.
I need for three different test domains to be able to access their respective…

Aaron Butacov
- 32,415
- 8
- 47
- 61
0
votes
1 answer
Erro Setting up VirtualHost for folders belonging to same domain
Noob Here.. I have the following folder structure on my Ubuntu Machine
/var/www/
/folder1
/folder2
Now i want to redirect my url xyz.com to folder1 & xyz.com/blog to folder2. I am using the following Vhost Config file
For xyz.com…

Jigar Jain
- 1,447
- 1
- 15
- 38
0
votes
2 answers
How to get default host work with mod_vhost_alias without mod_rewrite?
I recently added a virtual host config to my apache which is using mod_vhost_alias to route requests to domain-like directories. If the directory exists everything works just fine. Now my thought was, when I call a domain which is routed to my…

dops
- 1
- 1
0
votes
1 answer
Apache2 mixing mod_vhosts_alias and mod_rewrite
The Apache2 docs recommend mod_rewrite as a last resort for specifying which directory to send a given host request to. They said use mod_vhosts_alias. I set that up and its working without problem. However, I have a specific case that entails some…

JamesHoux
- 2,999
- 3
- 32
- 50
0
votes
1 answer
Subdomain to subfolder in Apache
I am looking for Apache configuration that would allow for the following:
Serve sub.domain.com as /%docRoot%/domain.com/sub, and
Would be able to do this for every hosted domain and any subdomain (ie. no per-domain vhost configuration)
I would be…

David
- 1,055
- 8
- 23