Answer the question
In order to leave comments, you need to log in
How to set up nginx for Aegea's E2 engine?
The engine documentation has an example setup. With this config, everything works fine for urls like blog.example.com.
How it is necessary to modify the config so that you can open a blog using a URL like example.com/blog/ ?
Answer the question
In order to leave comments, you need to log in
Nothing complicated, I got it like this:
location /blog/ {
root /var/www/html/example;
index index.php index.html index.htm home.php;
log_not_found off;
rewrite ^/blog/(.*)$ /blog/index.php?go=$1 last;
}
Раньше и указанный в документации конфиг не работал т.к. был результатом работы обычного конвертера правил .htaccess в nginx формат.
После нескольких правок и пары дней ожидания ответа - они приняли мой вариант и думаю это помогло хотя бы некоторым...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question