{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/1698","labels_url":"https://api.github.com/repos/magento/magento2/issues/1698/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/1698/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/1698/events","html_url":"https://github.com/magento/magento2/issues/1698","id":101702171,"number":1698,"title":"Apache with Nginx Reverse Proxy","user":{"login":"laupkram","id":1390979,"avatar_url":"https://avatars.githubusercontent.com/u/1390979?v=3","gravatar_id":"","url":"https://api.github.com/users/laupkram","html_url":"https://github.com/laupkram","followers_url":"https://api.github.com/users/laupkram/followers","following_url":"https://api.github.com/users/laupkram/following{/other_user}","gists_url":"https://api.github.com/users/laupkram/gists{/gist_id}","starred_url":"https://api.github.com/users/laupkram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laupkram/subscriptions","organizations_url":"https://api.github.com/users/laupkram/orgs","repos_url":"https://api.github.com/users/laupkram/repos","events_url":"https://api.github.com/users/laupkram/events{/privacy}","received_events_url":"https://api.github.com/users/laupkram/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-18T17:00:56Z","updated_at":"2015-08-18T17:07:30Z","closed_at":"2015-08-18T17:07:08Z","body":"I am currently using Apache 2.4 with a Nginx 1.4.6 as a Reverse Proxy. It seems my setup doesn't work properly with rewrites. I got a 404 error when going to admin page and other pages except for homepage that works fine.\r\n\r\nHere is my Apache config vhost file\r\n```\r\n<VirtualHost *:*>\r\n    ServerName magento2.dev\r\n    ServerAlias www.magento2.dev\r\n    ServerAdmin support@etd.me\r\n    DocumentRoot /home/magento2_dev/public_html\r\n    ErrorLog /home/magento2_dev/logs/apache2/error.log\r\n    CustomLog /home/magento2_dev/logs/apache2/access.log combined\r\n    \r\n    <Directory \"/home/magento2_dev/public_html\">\r\n        Options Indexes FollowSymLinks Includes ExecCGI\r\n        AllowOverride All\r\n        Require all granted\r\n        Allow from all\r\n    </Directory>\r\n    \r\n</VirtualHost>`\r\n```\r\n\r\nAnd my Nginx vhost config file\r\n\r\n```\r\nserver {\r\n    listen 80;\r\n    listen [::]:80;\r\n\t\r\n    root /home/magento2_dev/public_html;\r\n    index index.php index.html index.htm;\r\n\t\r\n    server_name magento2.dev www.magento2.dev;\r\n\t\r\n    location ~ \\.php$ {\r\n\t    proxy_pass http://127.0.0.1:8080;\r\n\t\tproxy_set_header X-Real-IP $remote_addr;\r\n\t\tproxy_set_header X-Forwarded-For $remote_addr;\r\n\t\tproxy_set_header Host $host;\r\n\t}\r\n\r\n\tlocation ~ /\\. {\r\n\t\tdeny all;\r\n    }\r\n\t\r\n    access_log /home/magento2_dev/logs/nginx/access.log;\r\n    error_log /home/magento2_dev/logs/nginx/error.log;\r\n\t\r\n}\r\n```\r\n\r\nany clues how I can fix this ? :)\r\n\r\nNOTE: I have apache mod rewrite on"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/132281783","html_url":"https://github.com/magento/magento2/issues/1698#issuecomment-132281783","issue_url":"https://api.github.com/repos/magento/magento2/issues/1698","id":132281783,"user":{"login":"laupkram","id":1390979,"avatar_url":"https://avatars.githubusercontent.com/u/1390979?v=3","gravatar_id":"","url":"https://api.github.com/users/laupkram","html_url":"https://github.com/laupkram","followers_url":"https://api.github.com/users/laupkram/followers","following_url":"https://api.github.com/users/laupkram/following{/other_user}","gists_url":"https://api.github.com/users/laupkram/gists{/gist_id}","starred_url":"https://api.github.com/users/laupkram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laupkram/subscriptions","organizations_url":"https://api.github.com/users/laupkram/orgs","repos_url":"https://api.github.com/users/laupkram/repos","events_url":"https://api.github.com/users/laupkram/events{/privacy}","received_events_url":"https://api.github.com/users/laupkram/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T17:07:30Z","updated_at":"2015-08-18T17:07:30Z","body":"I managed to fix it by adding \r\n\r\n```\r\n\tlocation / {\r\n        try_files $uri $uri/ /index.php;\r\n    }\r\n```"}}