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 Sub-Domain and Additional Static Sub-Domain?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
20 posts
  • Previous
  • 1
  • 2
Gordon55M
Posts: 43
Joined: Tue Apr 22, 2014 8:37 pm
Contact:
Contact Gordon55M
Twitter

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Gordon55M » Wed Aug 20, 2014 5:18 pm

Code: Select all

v-list-web-domains gpmcconnell
DOMAIN                      IP             U_DISK  U_BANDWIDTH  TPL      DATE
------                      ------         ------  ------       ------   ------
subdomain1.url.com  107.XXX.XXX.X  92      0            default  2014-08-19
subdomain2.url.com   107.XXX.XXX.X  127     0            default  2014-08-19
url.com         107.XXX.XXX.X 199     637          default  2014-05-23
If this is what you meant:

Code: Select all

v-list-web-domains username gpmcconnell
Error: USER username doesn't exist
Top

Kyon
Posts: 19
Joined: Tue Jul 29, 2014 9:11 am

Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Kyon » Wed Aug 20, 2014 5:24 pm

v-list-web-domains gpmcconnell json
Top

Gordon55M
Posts: 43
Joined: Tue Apr 22, 2014 8:37 pm
Contact:
Contact Gordon55M
Twitter

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Gordon55M » Wed Aug 20, 2014 5:30 pm

Code: Select all

v-list-web-domains gpmcconnell json
{
        "subdomain1.url.com": {
                "IP": "107.XXX.XXX.X",
                "IP6": "",
                "U_DISK": "92",
                "U_BANDWIDTH": "0",
                "TPL": "default",
                "ALIAS": "*.subdomain1.url.com",
                "STATS": "",
                "STATS_USER": "",
                "SSL": "yes",
                "SSL_HOME": "same",
                "FTP_USER": "",
                "PROXY": "default",
                "PROXY_EXT": "jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,exe,pdf,doc,xls,ppt,txt,odt,ods,odp,odf,tar,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm",
                "SUSPENDED": "no",
                "TIME": "15:15:00",
"               "DATE": "2014-08-19
        },
        "subdomain2.url.com": {
                "IP": "XXX.XXX.XXX.X",
                "IP6": "",
                "U_DISK": "127",
                "U_BANDWIDTH": "0",
                "TPL": "default",
                "ALIAS": "*.subdomain2.url.com",
                "STATS": "",
                "STATS_USER": "",
                "SSL": "yes",
                "SSL_HOME": "same",
                "FTP_USER": "",
                "PROXY": "default",
                "PROXY_EXT": "jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,exe,pdf,doc,xls,ppt,txt,odt,ods,odp,odf,tar,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm",
                "SUSPENDED": "no",
                "TIME": "22:50:53",
"               "DATE": "2014-08-19
        },
        "url.com": {
                "IP": "107.XXX.XXX.X",
                "IP6": "",
                "U_DISK": "199",
                "U_BANDWIDTH": "637",
                "TPL": "default",
                "ALIAS": "*.url.com",
                "STATS": "",
                "STATS_USER": "",
                "SSL": "yes",
                "SSL_HOME": "same",
                "FTP_USER": "",
                "PROXY": "default",
                "PROXY_EXT": "jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,exe,pdf,doc,xls,ppt,txt,odt,ods,odp,odf,tar,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm",
                "SUSPENDED": "no",
                "TIME": "16:10:01",
"               "DATE": "2014-05-23
        }
Top

Kyon
Posts: 19
Joined: Tue Jul 29, 2014 9:11 am

Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Kyon » Wed Aug 20, 2014 5:32 pm

ok, is there something on this log file ?

(Refresh the web page before)
tail -10 /var/log/vesta/nginx-error.log

Ok, it seems, it's the web.conf file, you probably edit something by error :p. Date line are strange :
" "DATE": "2014-08-19
If yes, can we see the /usr/local/vesta/data/users/[the user]/web.conf file ?
Top

Gordon55M
Posts: 43
Joined: Tue Apr 22, 2014 8:37 pm
Contact:
Contact Gordon55M
Twitter

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Gordon55M » Wed Aug 20, 2014 6:14 pm

Nginx-error.log:

Code: Select all

2014/08/20 13:21:24 [error] 1725#0: *962 FastCGI sent in stderr: "PHP message: PHP Warning:  array_reverse() expects parameter 1 to be array, null given in /usr/local/vesta/web/list/web/index.php on line 17" while reading upstream, client: 12.XXX.XXX.XXX, server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "107.XXX.XXX.X:8083", referrer: "https://107.XXX.XXX.X:8083/list/web/"
2014/08/20 13:21:24 [error] 1725#0: *962 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/templates/admin/list_web.html on line 33" while reading upstream, client: 12.XXX.XXX.XXX, server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "107.XXX.XXX.X:8083", referrer: "https://XXX.XXX.X:8083/list/web/"
web.conf file:

Code: Select all

DOMAIN='subdomain1.url.com' IP='107.XXX.XXX.X' IP6='' ALIAS='*.subdomain1.url.com' TPL='default' SSL='yes' SSL_HOME='same' FTP_USER='' FTP_MD5='' PROXY='default' PROXY_EXT='jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,exe,pdf,doc,xls,ppt,txt,odt,ods,odp,odf,tar,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm' STATS='' STATS_USER='' STATS_CRYPT='' U_DISK='92' U_BANDWIDTH='0' SUSPENDED='no' TIME='15:15:00' DATE='2014-08-19'
DOMAIN='subdomain2.url.com' IP='107.XXX.XXX.X' IP6='' ALIAS='*.subdomain2.url.com' TPL='default' SSL='yes' SSL_HOME='same' FTP_USER='' FTP_MD5='' PROXY='default' PROXY_EXT='jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,exe,pdf,doc,xls,ppt,txt,odt,ods,odp,odf,tar,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm' STATS='' STATS_USER='' STATS_CRYPT='' U_DISK='127' U_BANDWIDTH='0' SUSPENDED='no' TIME='22:50:53' DATE='2014-08-19'
DOMAIN='url.com' IP='107.XXX.XXX.X' IP6='' ALIAS='*.url.com' TPL='default' SSL='yes' SSL_HOME='same' FTP_USER='' FTP_MD5='' PROXY='default' PROXY_EXT='jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,exe,pdf,doc,xls,ppt,txt,odt,ods,odp,odf,tar,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm' STATS='' STATS_USER='' STATS_CRYPT='' U_DISK='199' U_BANDWIDTH='637' SUSPENDED='no' TIME='16:10:01' DATE='2014-05-23'
I think the lines are the issue in the web.conf file, but that is just a guess. I used Notepad ++ to edit it.
Top

Kyon
Posts: 19
Joined: Tue Jul 29, 2014 9:11 am

Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Kyon » Wed Aug 20, 2014 6:21 pm

Can you open it with the text editor nano with command line ?

"nano web.conf"

check if each line begin with DOMAIN=
Top

Gordon55M
Posts: 43
Joined: Tue Apr 22, 2014 8:37 pm
Contact:
Contact Gordon55M
Twitter

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Gordon55M » Wed Aug 20, 2014 6:34 pm

Each line does. Attached screen via putty with redaction.

Image
Top

Kyon
Posts: 19
Joined: Tue Jul 29, 2014 9:11 am

Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Kyon » Wed Aug 20, 2014 6:40 pm

Hum, i tried to add your lines in my conf and web panel show them without issue :/.
Perhaps encoding issue... (or not ><), it seems to be an issue when generating the content in json format :/.

Probably the line return...

Try this, did you get the same thing ?
root@vestapp  /usr/local/vesta/data/users/admin  file -bi web.conf
text/plain; charset=us-ascii
With nano, try remove the line return and redo it. Don't use notepad++.
Top

Gordon55M
Posts: 43
Joined: Tue Apr 22, 2014 8:37 pm
Contact:
Contact Gordon55M
Twitter

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by Gordon55M » Wed Aug 20, 2014 8:45 pm

When I click Add Domain under the web tab, it still successfully lets me add the domain. When I check the web.conf file, it gets written at the end just like the others. It just never appears in the interface, but appears to act correctly. (Web tab goes from 3 domains and aliases to 4)

I am going to dump this entire user and start over, the more I played around, the less bind9 worked...

Thank you so much for your help Kyon, I got a better feeling for Vesta with it.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
  • Quote

Post by skurudo » Wed May 27, 2015 2:38 pm

This error can be from broken sudo:
viewtopic.php?f=10&t=8349&p=27113#p27113

or for old version - parse error:
viewtopic.php?f=16&t=6087&p=27115#p17137
Top


Post Reply
  • Print view

20 posts
  • Previous
  • 1
  • 2

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