A
A
Anton2016-07-06 14:29:39
Nginx
Anton, 2016-07-06 14:29:39

Wordpress blog inside Symfony application?

server {
server_name symfony;
root /var/www/project/web;
location / {
try_files $uri /app.php$is_args$args;
}
location ~ ^/(app_dev|config)\.php(/|$) {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
}
error_log /var/log/nginx/project_error.log;
access_log /var/log/nginx/project_access.log;
client_max_body_size 100M;
}
There is a standard config for symphony, how to make all urls starting with /blog processed by WordPress

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Zelensky, 2016-07-06
@SergeyZelensky-Rostov

Why complicate it like that? make a subdomain -> blog.site.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question