Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

.htaccess files and Nginx

Featured Replies

since I don't seem to be able to get a response in the letsencrypt support thread, and time is running out on my hosting plan at Bluehost, I am hoping to get somewhere here in the more general forum.

4 days ago I posted a question in the letsencrypt support thread, about how Nginx in the letsencrypt docker can be made to do what the .htaccess files on Apache does.

My programmer is moving a database driven php application/site of mine from Bluehost to my unRAID server, running the letsencrypt and mariadb dockers, and had this .htaccess file:

<ifmodule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</ifmodule>

he then realised and told me that Nginx does not read/obey .htaccess.

I think he said that he needs to enable mod_rewrite.

does anyone know how this can be accomplished with Nginx?
I hope to find an answer soon, as I don't want to have to pay for yet another month of Bluehost cloud hosting. 😕

Respectfully, this is a question that should be posed to the authors of nginx itself, not unraid or the docker authors.

 

If you are paying for your programmer to do this transition, it's something they should be handling, not asking you to do their homework for them.

 

10 seconds of googling got me here, maybe that will help?

https://serverfault.com/questions/366152/what-is-nginx-equalant-for-my-htaccess-mod-rewrite

  • Author

I hear ya, jonathanm...I'm also a bit frustrated with him, but since I can't afford any better than a 10$/hr Indian hack, at the moment, I do have to do some of the homework if need be.

I also found a couple of links like that, which I sent him, but he appears to be in over his head...might have to find someone else with Nginx experience soon, if this doesn't get resolved soon.

Thanks for the link.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.