Mobile app version of vmapp.org
Login or Join
Shelton105

: Set any subdomain for a given domain in apache in IOS I am working in localhost, I've created a domain like this in /etc/hosts 127.0.0.1 *.example.com in /etc/apache2/extra/httpd-vhosts.conf

@Shelton105

Posted in: #Apache2 #Ios #MultiSubdomains

I am working in localhost, I've created a domain like this

in /etc/hosts

127.0.0.1 *.example.com


in /etc/apache2/extra/httpd-vhosts.conf

<VirtualHost *:80>
ServerName *.example.local
DocumentRoot "/path/to/workspace/example"
SetEnv ENV_MODE "development"
</VirtualHost>


Then when I try to type any url like : something.example.local or whatever.example.local, it doesn't work.

before I have a lot of configurations, one for example.local, another for anything.example.local, other.example.local, etc... but this is tedious because I can have a lot of subdomains, and I would like to set all in one with a wildcard or something similar.

As I said in the title, I am with OS X El Capitan.

Thanks !

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton105

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme