Shredder wrote:BrainStone wrote:Ok. I fixed it by manually converting all the .htaccess files to a nginx config.
Good info.
Can you post here exact nginx instructions?
This is the relevant part:
Code: Select all
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /app.php;
}
}
location = /config.php {
deny all;
}
location = /common.php {
deny all;
}
location /cache/ {
deny all;
}
location /config/ {
deny all;
}
location /files/ {
deny all;
}
location /images/avatars/upload/ {
deny all;
}
location /includes/ {
deny all;
}
location /store/ {
deny all;
}
location ~ \.php$ {
# Your personal php settings. They vary. But they have to be here!
}
# Important!
location ~ /\.ht {
deny all;
}
(If your forum is not in the root directory you have to add the put the relativ path infort of every of the location statements except the last two. They stay the same.
Example: Your forum is at
/forum/
(not
/
) so
location = /config.php
becomes
location = /forum/config.php
Yes. I used it. I had to manually change some settings slightly but that is a minor issue.
I think this should be included in the install instructions. Could save a lot of users a lot of trouble!