We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
There is no "proxy support" option when editing a web item
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
There is no "proxy support" option when editing a web item
Today I login in to VestaCP GUI panel, tried to add a new web. Then after save, I click on the "edit" button, but on this editing interface, there is no option of "proxy support".
Why?
--------------------------- update ------------------------------
Well, I formerly logged in with non-admin user account to VestaCP, so there is no "proxy support" option.
Now, I logged in with "admin" user account of VestaCP, and then I "login as user001" and tried to edit the Web (domain name) of this user, then I can see the "proxy support" option on the editing interface.
Why the "proxy support" option is not visible for non-admin user?
Thank you.
Why?
--------------------------- update ------------------------------
Well, I formerly logged in with non-admin user account to VestaCP, so there is no "proxy support" option.
Now, I logged in with "admin" user account of VestaCP, and then I "login as user001" and tried to edit the Web (domain name) of this user, then I can see the "proxy support" option on the editing interface.
Why the "proxy support" option is not visible for non-admin user?
Thank you.
Re: There is no "proxy support" option when editing a web item
By desing,
it is not anticipated that the user can change something substantial by yourself
it is not anticipated that the user can change something substantial by yourself
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: There is no "proxy support" option when editing a web item
But, the problem is: if I edit the web item with non-Admin user account (of course I can NOT see the "proxy support" option there), then, after Save, I saw on the Web list, there shows:
So, the key of my question is: Why the "proxy support" was disabled after save while I NEVER have a chance to disable it on the editing page?
Which I remeber was "Yes" on the list page BEFORE I edit it.Proxy Support : No
So, the key of my question is: Why the "proxy support" was disabled after save while I NEVER have a chance to disable it on the editing page?
Re: There is no "proxy support" option when editing a web item
The problem is any repeatability? We would like to test on the test server
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: There is no "proxy support" option when editing a web item
Yes, I can confirm that you will reproduce this issue by following steps:
1. login in VestaCP GUI with non-Admin user account;
2. create a new web item (domain), without any extra operation, just save it;
3. Return to the Web Service list, you can see that this new web item has "proxy support: yes" attribute;
4. Click the "Edit" button of this new item, on the editing page, do not change anything, just click "Save" button;
5. Return to the Web Service list, Now you will see the "proxy support" attribute of this web item has been CHANGED to "<strike>proxy support</strike>" without "Yes" !
Since there is no option for "proxy support" on the editing page for a non-Admin user, so there is no chance for this non-Admin user to give a "proxy support: Yes" attribute to this web item again!
Don't you think this is a bug?
Thank you.
1. login in VestaCP GUI with non-Admin user account;
2. create a new web item (domain), without any extra operation, just save it;
3. Return to the Web Service list, you can see that this new web item has "proxy support: yes" attribute;
4. Click the "Edit" button of this new item, on the editing page, do not change anything, just click "Save" button;
5. Return to the Web Service list, Now you will see the "proxy support" attribute of this web item has been CHANGED to "<strike>proxy support</strike>" without "Yes" !
Since there is no option for "proxy support" on the editing page for a non-Admin user, so there is no chance for this non-Admin user to give a "proxy support: Yes" attribute to this web item again!
Don't you think this is a bug?
Thank you.
Last edited by baijianpeng on Thu Mar 09, 2017 11:35 pm, edited 1 time in total.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: There is no "proxy support" option when editing a web item
Why I can not make words in post with "strikethrough" format on your forum?
I tried both [s] and <strike> tag but they were rendered as the raw code.
I tried both [s] and <strike> tag but they were rendered as the raw code.
Re: There is no "proxy support" option when editing a web item
Hello,
I found some other bug related to this bug.
When I use SSL with letsencrypt without proxy then response is 404.
So my firends can't create SSL with GUI, but when I'am logged as admin, and use "login as xxxx", then I can select proxy support, and then I can create SSL with Letsencrypt
I found some other bug related to this bug.
When I use SSL with letsencrypt without proxy then response is 404.
So my firends can't create SSL with GUI, but when I'am logged as admin, and use "login as xxxx", then I can select proxy support, and then I can create SSL with Letsencrypt
Re: There is no "proxy support" option when editing a web item
I found fast workaround for this problem.
/usr/local/vesta/web/edit/web/index.php:
add before "// Delete proxy support" (~224 line):
and also add before "// Change document root for ssl domain" (~268 line):
/usr/local/vesta/web/edit/web/index.php:
add before "// Delete proxy support" (~224 line):
Code: Select all
if($_SESSION['user'] == 'admin') {
Code: Select all
}
Re: There is no "proxy support" option when editing a web item
This was driving me crazy. Checkboxes are very dangerous in web development, because when you manage the form you are unable to know if checkbox has been left unchecked or if it was entirely missing!
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: There is no "proxy support" option when editing a web item
I tried your code today, this code completely hide the "proxy support" option, instead of showing it with checkbox mark.svirus wrote:I found fast workaround for this problem.
/usr/local/vesta/web/edit/web/index.php:
add before "// Delete proxy support" (~224 line):and also add before "// Change document root for ssl domain" (~268 line):Code: Select all
if($_SESSION['user'] == 'admin') {
Code: Select all
}