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

There is no "proxy support" option when editing a web item

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

There is no "proxy support" option when editing a web item
  • Quote

Post by baijianpeng » Wed Mar 08, 2017 12:41 pm

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

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

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by skurudo » Thu Mar 09, 2017 12:18 pm

By desing,
it is not anticipated that the user can change something substantial by yourself
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by baijianpeng » Thu Mar 09, 2017 12:35 pm

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:
Proxy Support : No
Which I remeber was "Yes" on the list page BEFORE I edit it.

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

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

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by skurudo » Thu Mar 09, 2017 2:02 pm

The problem is any repeatability? We would like to test on the test server
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by baijianpeng » Thu Mar 09, 2017 11:28 pm

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.
Last edited by baijianpeng on Thu Mar 09, 2017 11:35 pm, edited 1 time in total.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by baijianpeng » Thu Mar 09, 2017 11:34 pm

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

svirus
Posts: 2
Joined: Sat Apr 15, 2017 11:09 am

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by svirus » Thu Apr 20, 2017 10:32 am

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
Top

svirus
Posts: 2
Joined: Sat Apr 15, 2017 11:09 am

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by svirus » Fri Apr 21, 2017 10:18 am

I found fast workaround for this problem.
/usr/local/vesta/web/edit/web/index.php:
add before "// Delete proxy support" (~224 line):

Code: Select all

if($_SESSION['user'] == 'admin') {
and also add before "// Change document root for ssl domain" (~268 line):

Code: Select all

 } 
Top

quacos
Posts: 8
Joined: Thu Feb 20, 2014 11:49 am
Contact:
Contact quacos
Website

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by quacos » Mon Oct 16, 2017 8:27 am

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

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: There is no "proxy support" option when editing a web item
  • Quote

Post by baijianpeng » Mon Dec 11, 2017 6:23 am

svirus wrote:I found fast workaround for this problem.
/usr/local/vesta/web/edit/web/index.php:
add before "// Delete proxy support" (~224 line):

Code: Select all

if($_SESSION['user'] == 'admin') {
and also add before "// Change document root for ssl domain" (~268 line):

Code: Select all

 } 
I tried your code today, this code completely hide the "proxy support" option, instead of showing it with checkbox mark.
Top


Post Reply
  • Print view

10 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