This topic is locked
[SOLVED]

Server no load styles when use alias

1/20/2022 3:50:56 PM
PHPRunner General questions
P
Pedro Rojas author

Hello I upload a phprunner web to a nginx server in two conditions:

  1. if I put the web after port configuration, ex http://Server:port/phprunnerWeb.php the web load succesfully
  2. If I put the web after alias configuracion, ex http://Server/alias/phprunnerWeb.php the syles are not loaded.

In the second case on the web broser console is shwon the addres where it goes to get styles and it is without alias: http://Server/phprunnerWeb.php, so web server cannot serve styles in that location.
We have other webs compiled with older version of phprunner and runs ok in both configurations.

Anybody can help me?

P
Pedro Rojas author 1/20/2022

That behaviour is with 10.6 and 10.7 version. The old version of phpRunner is 9.8.

P
Pedro Rojas author 1/25/2022

Hello,
I found the problem, In all pages there is this configuration:
<base href="{$projectPath}">
Anybody knows where I have to configure it?
Thanks

Sergey Kornilov admin 1/25/2022

We don't know much about Nginx or aliases or why this configuration is required on your side. I can say that <base href="{$projectPath}"> sets the base HTML tag. You can find more info about it at here.

To make the change proceed to the Editor screen, and modify this BASE tag under Templates->headers.htm.

P
Pedro Rojas author 1/26/2022

Hi !
We could solve the issue changing the content of BASE tag.
Thanks for you support !