Different URL
-
Hello. I have a server setup that needs pufferpanel to be installed. I finished the installation and found out that I have to access my main IP (xxx.xxx.xxx.xxx) in order to go to the control panel. Is there a way so that the panel can be linked to (xxx.xxx.xxx.xxx/panel), not just (xxx.xxx.xxx.xxx), because I want (xxx.xxx.xxx.xxx) to link to my website, not the panel.
-
Hey Edward,
You can set up a subdirectory as the root of the website. In your case you will need to edit /etc/nginx/sites-available/pufferpanel.conf and change the location portion to the following:
location /panel { root /srv/pufferpanel/public; }
-
@ScottStevens said in Different URL:
Hey Edward,
You can set up a subdirectory as the root of the website. In your case you will need to edit /etc/nginx/sites-available/pufferpanel.conf and change the location portion to the following:
location /panel { root /srv/pufferpanel/public; }
This will not work in the end.
Our code does not properly handle the links in this case, so we will never append the /panel in the front.
We always recommend subdomains to be used instead.
-
Any way to change the base URL? Should be a relatively simple fix (although I have not delved into the code enough to have an honest opinion on the matter). I will take a look at it later and maybe try to code up a patch for it. Thank you for the correction!
-
@ScottStevens Unfortunately I'm not sure I would call it a simple fix, please see https://github.com/PufferPanel/PufferPanel/issues/687 for more information.
-
Just took a look at the code and I have to agree that the work required at this stage is pretty substantial. Implementing a value such as settings.base_url (which could be referenced at the beginning of all PufferPanel URLs, e.g. /pufferpanel/) would be the simplest solution but editing every piece of code to include this will take some time.
Apologies, as I said I hadn't taken a good look at the code yet, and I didn't mean to sound as if you hadn't thought about it. No offense meant.