0
votes
1answer
115 views

Apache2 VirtualHosts and wildcard subdomains

Is there a way to setup a catchall (for subdomains) virtual server for a single domain, where I have a couple pre-defined subdomains. ie: webmail.example.com -> points to "/var/web/roundcube" ...
0
votes
0answers
202 views

mod_rewrite in .htaccess w/ wildcard virtual hosts - preserving subdomain while funneling requests through index.php

I have a project which utilizes wildcard subdomains to allow requests for www.foo.com, api.foo.com, & admin.foo.com to utilize the same document root. Routing for this project is based initially ...
0
votes
2answers
71 views

Virtualhost - defning subdomains each with separate folder

I currently have one main domain: mydomain.com This is working fine. What im trying to do is now adding a subdomain through my mydomain.conf file, so that I can have: sub.mydomain.com I've tried ...
0
votes
1answer
45 views

catch all unused sub domains not working

im using wildcard subdomains and would like to specify the directory to send an unused subdomain. i have edited the 000-default in my sites enabled but that does not effect anything. how could i ...
0
votes
1answer
248 views

staging and production on same server with domain wildcards

I have a virtual host configured to run a Ruby on Rails app on Apache and Passenger this way: <VirtualHost *:80> ServerAdmin account@gmail.com ServerName staging.domain.co ServerAlias ...
0
votes
1answer
194 views

Apache Wildcard Vhost not working

I can't seem to get a wildcard vhost working on my local apache installation. My vhosts file currently has the contents below. After I edit it, I'm making sure to restart the server but have still had ...
0
votes
2answers
1k views

Use regular expression in definition of virtualhost

I have to define about 100 subdomain virtualhost entries in server config file . I want to know if there is any way to do it with regular expression to increase codes in apache config file?
0
votes
1answer
622 views

Changing the order of VirtualHosts in WHM/cPanel

I have a need for one of the VirtualHosts that WHM is pulling from cPanel when automatically building httpd.conf to be placed last, because it uses a wildcard subdomain. Example: <VirtualHost ...