Page 2 of 2

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

Posted: Wed Aug 20, 2014 5:18 pm
by Gordon55M

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

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

Posted: Wed Aug 20, 2014 5:24 pm
by Kyon
v-list-web-domains gpmcconnell json

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

Posted: Wed Aug 20, 2014 5:30 pm
by Gordon55M

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
        }

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

Posted: Wed Aug 20, 2014 5:32 pm
by Kyon
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 ?

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

Posted: Wed Aug 20, 2014 6:14 pm
by Gordon55M
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.

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

Posted: Wed Aug 20, 2014 6:21 pm
by Kyon
Can you open it with the text editor nano with command line ?

"nano web.conf"

check if each line begin with DOMAIN=

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

Posted: Wed Aug 20, 2014 6:34 pm
by Gordon55M
Each line does. Attached screen via putty with redaction.

Image

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

Posted: Wed Aug 20, 2014 6:40 pm
by Kyon
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++.

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

Posted: Wed Aug 20, 2014 8:45 pm
by Gordon55M
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.

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

Posted: Wed May 27, 2015 2:38 pm
by skurudo
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