Wildcard SubDomains Issue
Wildcard SubDomains Issue
I've search for a solution for this over and over to no avail. I added the DNS entries as mentioned here:
http://forum.vestacp.com/viewtopic.php? ... ard#p26681
whatever.domain.com works fine when I try to load the url. However, whatever.domain.com/folder/blahblah.php etc shows me a 404 error. Any ideas on how to fix this?
http://forum.vestacp.com/viewtopic.php? ... ard#p26681
whatever.domain.com works fine when I try to load the url. However, whatever.domain.com/folder/blahblah.php etc shows me a 404 error. Any ideas on how to fix this?
Re: Wildcard SubDomains Issue
Anyone who came across the same issues. People seem to avoid answering issues on this properly. Here's how to add a wildcard domain properly so anything.domain.com works properly.
1. Go to Web->Edit->Aliases
2. DNS -> Add Record->CNAME
You could probably add the same value for an A entry under DNS too. Worked fine for me.
1. Go to Web->Edit->Aliases
Code: Select all
*.yourdomain.com
Code: Select all
*.yourdomain.com
Re: Wildcard SubDomains Issue
can't add
Code: Select all
*.domain.com
Usage: apache2 {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean}
* Restarting web server apache2
...fail!
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 103 of /home/admin/conf/web/apache2.conf:
The address or port is invalid
Action 'configtest' failed.
The Apache error log may have more information.
Re: Wildcard SubDomains Issue
I was using nginx so not sure for apache.
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Wildcard SubDomains Issue
You can check the apache error log and the file /home/admin/conf/web/apache2.conf on line 103 to fix your problem.host79 wrote:can't addCode: Select all
*.domain.com
Usage: apache2 {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean}
* Restarting web server apache2
...fail!
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 103 of /home/admin/conf/web/apache2.conf:
The address or port is invalid
Action 'configtest' failed.
The Apache error log may have more information.