Hey I'm having an issue getting my subdomains to show up, I am using HTTPD and have set up my conf in conf.d witht he following
<VirtualHost *:80>
ServerName wp.{domain}.com
SetEnvIfNoCase HOST ^wp\.{domain}\.com\.?(:80)?$ PROTECTED_HOST
DocumentRoot /var/www/html/wp.{domain}.com
LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/wp.error.log
CustomLog ${APACHE_LOG_DIR}/wp.access.log combined
DirectoryIndex index.php
SetEnv APPLICATION_ENV development
<Directory /var/www/html/wp.{domain}.com/>
AuthUserFile /root/htpasswd
AuthType Basic
AuthName "Password Protected"
Order Deny,Allow
Satisfy any
Deny from all
Require valid-user
Allow from env=!PROTECTED_HOST
</Directory>
</VirtualHost>
I have also put this in my httpd.conf
my hosts file looks as follows
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 {domain}.com wp.{domain}.com
192.237.179.187 {domain}.com wp.{domain}.com
10.208.155.37 serve.smart.com wp.{domain}.com
The error that I am getting is _default_ VirtualHost overlap on port 80, the first has precedence
While adding NameVirtualHost *:80
my sub domain stop working
how do I fix this?