• Home
  • Get help
  • Ask a question
Last post 52 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67840
All time tickets 10484
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1141 – nginx proxy to apache2 joomla sh404sef

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Saturday, 10 October 2015 10:31 UTC
cespinas
 hi,

i have this weird issues on my website where if i add a .html suffix to the sh404sef configuration i always got a 404 not found error on my links, it works fine without an html suffix, do your have any suggestion guys, anything i miss

see my nginx conf below..

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}

location ~* \.(js|css|jpg|jpeg|gif|png|svg|ico|pdf|html|htm)$ { }
location ~* {

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:6048;
}
Monday, 12 October 2015 08:21 UTC
wb_weeblr
Hi

We do not provide advice on server setup, which is way out of our expertise. In your case however, you seem to nullify requests that ends with .htm or .html?
location ~* \.(js|css|jpg|jpeg|gif|png|svg|ico|pdf|html|htm)$ { }


Rgds
 
Monday, 12 October 2015 08:53 UTC
cespinas
hi,
do you have some sample conf that wont nullify html or htm

regards,
cedric
Monday, 12 October 2015 09:00 UTC
wb_weeblr
Hi

No, like I said, servers are outside of our scope, we just deal with the extensions, that's already quite enought for us ;)

However, in that line, you should probably simply remove

location ~* \.(js|css|jpg|jpeg|gif|png|svg|ico|pdf)$ { }


Again, that's just a guess. Who did the initial config file?

Rgds
 
Monday, 12 October 2015 09:27 UTC
cespinas
I just found out this config in regards to the nginx reverse proxy setup, anyhow i'll try your suggestion

thanks
cedric
Monday, 12 October 2015 09:28 UTC
wb_weeblr
Hi

Also, if I may ask, why do you use apache2 on top of nginx? why not directly nginx and Joomla? That's a more complex setup and I don't see what apache brings to the table here?

Rgds
 
Monday, 12 October 2015 09:41 UTC
cespinas
hi,

You're right i removed the html and htm and now it works, actually this is just a test to see if there are performance gained on this setup

thanks
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.