Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Wildcard SubDomains Issue

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
lotusming
Posts: 16
Joined: Fri Jun 10, 2016 6:34 pm

Wildcard SubDomains Issue
  • Quote

Post by lotusming » Fri Jun 10, 2016 6:43 pm

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?
Top

lotusming
Posts: 16
Joined: Fri Jun 10, 2016 6:34 pm

Re: Wildcard SubDomains Issue
  • Quote

Post by lotusming » Sat Jun 11, 2016 6:15 pm

Anyone?
Top

lotusming
Posts: 16
Joined: Fri Jun 10, 2016 6:34 pm

Re: Wildcard SubDomains Issue
  • Quote

Post by lotusming » Tue Jun 14, 2016 1:48 pm

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

Code: Select all

*.yourdomain.com
2. DNS -> Add Record->CNAME

Code: Select all

*.yourdomain.com
You could probably add the same value for an A entry under DNS too. Worked fine for me.
Top

host79
Posts: 21
Joined: Wed Apr 01, 2015 2:30 pm

Re: Wildcard SubDomains Issue
  • Quote

Post by host79 » Sun Sep 11, 2016 5:08 pm

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.
Top

lotusming
Posts: 16
Joined: Fri Jun 10, 2016 6:34 pm

Re: Wildcard SubDomains Issue
  • Quote

Post by lotusming » Sun Sep 11, 2016 10:37 pm

I was using nginx so not sure for apache.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Wildcard SubDomains Issue
  • Quote

Post by tjebbeke » Mon Sep 12, 2016 8:58 am

host79 wrote: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.
You can check the apache error log and the file /home/admin/conf/web/apache2.conf on line 103 to fix your problem.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password