N
N
nymitr2014-07-14 14:53:04
Nginx
nymitr, 2014-07-14 14:53:04

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

2 answer(s)
V
Vasily, 2015-09-12
@yakutec

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;
  }

S
Sergey Brovko, 2014-07-28
@cyber01

Раньше и указанный в документации конфиг не работал т.к. был результатом работы обычного конвертера правил .htaccess в nginx формат.
После нескольких правок и пары дней ожидания ответа - они приняли мой вариант и думаю это помогло хотя бы некоторым...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question