Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

b_300_0_16777215_00_http___ximage.ml_x_spidersem.jpg_qn.jpeg

CentOS Web Panel has an option of using nginx as web-server, but out of the box Search Engine Friendly links don't work for Joomla.

So here are the steps:

  1. Select nginx as the web-server
  2. Create a custom template from terminal or via CWP GUI
  3. Apply the template to the needed domains

Select nginx as the web-server

Go to WebServer Settings -> Select WebServers and select nginx. Save.

2020_04_26_13_49_33_oa.png

Create a custom template from terminal or via CWP GUI

Go to terminal and create a custom template

# cd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/;
# cp default.tpl joomla.tpl;
# cp default.stpl joomla.stpl;

In both newly created files after location / { add line try_files $uri $uri/ /index.php?$args;

And optionally to redirect to redirect www to non-www add before location / {

if ($host != $server_name) {
      rewrite ^/(.*) $scheme://$server_name/$1 permanent;
}

Note, there are several server sections in this file. We dont need to touch other server sections here. Or can even remove them, as they concern special subdomains like webmail.yourdomain.com, mail.yourdomain.com.

Using CWP GUI

Go to WebServer Settings -> WebServers Template Editor, view default templates and copy their code to an editor for later use. Note, we need vhosts/nginx/php-fpm files default.tpl and default.stpl

2020_04_26_14_22_37_eq.png 2020_04_26_14_29_56_dp.png\

Switch to next tab and create files with the code changes provided above. For both files.

2020_04_26_14_33_10_bl.png

Apply the template to the needed domains

Go to WebServer Settings -> WebServers Domain Conf, chose joomla web-site user and select nginx -> php-fpm, php-fpm and finally joomla (your newly create template). Don't forget to check Rebuild WebServers conf for domain on save. Save

2020_04_26_14_36_33_te.png 2020_04_26_14_38_47_gu.png

 Should work now.

Please register to post comments.

Found a typo? Please select it and press Ctrl + Enter.
FaLang translation system by Faboba
ОУН-УПА: легенда спротиву Українська Дивізія «Галичина» Зиновій Книш: спогади й матеріали до діяння УВО і ОУН Реаніматор електронних текстів Забуттю не підлягає 1917-1991

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 11:45
    The fields %TO_NAME% and %TO_USERNAME% are empty

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 11:43
    My fault, I made it

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 10:46
    I did. Now I'm asking me how to put the surename into the email... :-|

    Read more...

     
  • NavigationAry - navigate between Joomla menu items like between articles using "prev - next"

    Berndi Berndi 29.06.2019 15:59
    I also miss content in %TO_NAME%

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 29.06.2019 15:15
    Hi gruz, I have the problem, that when I use the %AUTHOR% tag, the plugin dosen't send the author ...

    Read more...