Nginx配置到Apache

时间:2017-08-20 09:23:31

标签: apache nginx

我正在尝试将conf文件从Nginx移植到Apache。现在我的同事和Nginx一起运行,但是我使用的是Apache而不是Nginx。

nginx配置如下所示:

server {
listen      80;
server_name MY_SERVER_NAME;
root /DIR_PROJECT/web;

    //Angular
    location / {
             root /DIR_PROJECT/web/front;
            try_files $uri /index.html;
    }

    location ~ ^/(uploads)(/.*)$ {
            root /DIR_PROJECT/app/data;
    }

    //Symfony
    location ~ ^/(assets|bundles)(/.*)$ {
            #try to serve file directly, fallback to app.php
            try_files $uri /app.php$is_args$args;
    }

    location ~ ^/(app_dev|config)\.php(/|$) {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            fastcgi_param SCRIPT_FILENAME$document_root$fastcgi_script_name;
            fastcgi_buffer_size 32k;
            fastcgi_buffers 256 32k;
            fastcgi_max_temp_file_size 0;
            include        fastcgi_params;
    }

    error_log /DIR_PROJECT/app/logs/error.log;
    access_log /DIR_PROJECT/app/logs/access.log;
}

我想将其更改为apache配置。我怎么能这样做?

感谢。

0 个答案:

没有答案