Questions tagged [mod-vhost-alias]
36 questions
1
vote
0 answers
apache alias and relative urls
I have made a new website for a customer. Before we put it online he wants to see it.
Now, I have server, so I thought of putting it in a subdirectory: http://localhost/project2
I added this to the vhost:
Alias /project2…

Wim
- 41
- 3
1
vote
1 answer
Using fall-through rewrite for mod_vhost_alias
I run a couple dozen sites on my test VPS, and currently use mod_vhost_alias to avoid needing a new VirtualHost every time I throw up a new site. My current configuration looks like this:
ServerName my.servername.com
…

CristosLC
- 412
- 4
- 16
1
vote
1 answer
Allow sub domains, but don't match www
I'm currently trying to configure Apache vhost configuration and was hoping to be able to use mod_vhost_alias for everything.
Instead of setting up a configuration for each website I wanted to make it dynamic.
So far I have:
VirtualDocumentRoot…

Steven10172
- 2,003
- 4
- 21
- 37
1
vote
1 answer
wamp local subdomains and htaccess rewrite rules
i recently fixed my site up with a bit up php mvc magic for which i use those settings in my .htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}…

stephanlindauer
- 1,910
- 2
- 14
- 17
1
vote
3 answers
Apache 2, ubuntu - VHost doesn't work
I want to create VHost on my machine.
My config:
/etc/hosts
127.0.0.1 mysite.dev
/etc/apache2/sites-available/mysite.dev
SetEnv APPLICATION_ENV "development"
ServerName mysite.dev
DocumentRoot…

michail_w
- 4,318
- 4
- 26
- 43
1
vote
1 answer
File not found with VirtualHost and mod_rewrite
I'm bulding a RESTful api based on Tonic.
On my developer machine and our stage server we use virtual hosts.
Tonic uses a .htaccess file to translate the incomming calls to it's dispatcher.php file. This works fine on servers without VirtualHosts…

ztripez
- 664
- 6
- 24
0
votes
1 answer
How do I set up virtual host directories for sub-subdomains same as subdomains?
I currently use mod_vhost_alias with a wildcard ServerAlias to catch all subdomains for the domain I use to hold development versions of websites.
This works great, but I reach an issue when I need to test websites that have 'm.' subdomain…

Rhys
- 1,581
- 2
- 14
- 22
0
votes
0 answers
How can I keep a global ServerName in apache working?
The Apache documentation is a bit unclear on the vhost configuration. Where I normally use wampserver, I discovered a discrepancy with XAMPP. Consider the fairly standard httpd.conf in the XAMPP distribution containing among other things:
ServerName…

theking2
- 2,174
- 1
- 27
- 36
0
votes
1 answer
Using wordpress for /blog route in nodejs website not working
I created a vhost like this in my apache2 server configuration:
ServerName test.co
ServerAdmin webmaster@localhost
#wordpress
Alias /blog "/var/www/test_wp/public_html"

Hunter
- 459
- 4
- 15
0
votes
0 answers
Vhost access error / wamp
I have a big problem with my vhost installation with my wamp server when i want to load my website, it display this :
"Forbidden
You don't have permission to access / on this server."
i have seen a lot of tutorials and i have try this, and it…

Issac411
- 3
- 2
0
votes
1 answer
apache config VirtualDocumentRoot
I have this configuration in my httpd-vhosts.conf:
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
…
user936965
0
votes
1 answer
Apache ServerName * wildcard not working with vhost_dbd_module
I'm trying to migrate my virtualhosts to a mysql database using vhost_dbd_module.
In the various examples I find online, they instruct me to use "ServerName *" as a wildcard in the VirtualHost.
When I configure my VirtualHost this way, the…

WhiteEyebrows
- 61
- 2
- 6
0
votes
1 answer
apache2 : userdir in userdir.domain.fr using VirtualDocumentRoot
I use apache2 and I want to have something like username.mydomain.fr
www.mydomain.fr --> /var/www/web-en-royans that is works fine
username.mydomain.fr --> /home/username/www that does not work
also, www.mydomain.fr/~username --> /home/username/www…

psic
- 349
- 2
- 5
- 17
0
votes
1 answer
Mass virtual hosting with Apache 2.4
I would like to use the value set by VirtualDocumentRoot in a RewriteRule.
The Apache documentation says:
The other thing to determine is the document root (configured with DocumentRoot and available to CGI scripts via the DOCUMENT_ROOT environment…

Matworms
- 3
- 3
0
votes
1 answer
Apache dynamic subfolders
I need to setup Apache so it deals with 2 different disk locations and maps different sites dinamically based on the subfolder on the URLs:
http://localhost1/site1.com/
http://localhost1/site2.com/
http://localhost2/site3.com/
...
That will map…

Onesiphorus
- 1
- 1