We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Wildcard Sub-Domain and Additional Static Sub-Domain?
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
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
Code: Select all
v-list-web-domains username gpmcconnell
Error: USER username doesn't exist
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
v-list-web-domains gpmcconnell json
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
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?
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 ?
(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?
Nginx-error.log:
web.conf file:
I think the lines are the issue in the web.conf file, but that is just a guess. I used Notepad ++ to edit it.
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/"
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'
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
Can you open it with the text editor nano with command line ?
"nano web.conf"
check if each line begin with DOMAIN=
"nano web.conf"
check if each line begin with DOMAIN=
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
Each line does. Attached screen via putty with redaction.
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
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 ?
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 ?
With nano, try remove the line return and redo it. Don't use notepad++.root@vestapp /usr/local/vesta/data/users/admin file -bi web.conf
text/plain; charset=us-ascii
Re: Wildcard Sub-Domain and Additional Static Sub-Domain?
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.
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?
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
viewtopic.php?f=10&t=8349&p=27113#p27113
or for old version - parse error:
viewtopic.php?f=16&t=6087&p=27115#p17137