You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
$ curl -I http://d8sandbox.local/install.php
HTTP/1.1 404 Not Found
Date: Fri, 16 Dec 2016 22:27:13 GMT
Server: Apache/2.4.18 (Ubuntu)
X-Powered-By: PHP/7.0.14-2+deb.sury.org~xenial+1
Content-Type: text/html; charset=UTF-8
Curl path to test clean urls are working
$ curl -I http://d8sandbox.local/user/login
HTTP/1.1 200 OK
Date: Fri, 16 Dec 2016 22:30:52 GMT
Server: Apache/2.4.18 (Ubuntu)
X-Powered-By: PHP/7.0.14-2+deb.sury.org~xenial+1
Cache-Control: must-revalidate, no-cache, private
X-Drupal-Dynamic-Cache: MISS
X-UA-Compatible: IE=edge
Content-language: en
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Generator: Drupal 8 (https://www.drupal.org)
X-Drupal-Cache: MISS
Content-Type: text/html; charset=UTF-8
Verify mod_rewrite is loaded in apache
vagrant@d8sandbox:~$ apache2ctl -M
AH00112: Warning: DocumentRoot [/usr/share/php/xhprof_html] does not exist
Loaded Modules:
...
rewrite_module (shared)
...
Summary
On a clean installation of DrupalVM, I'm seeing mod_rewrite redirects set by Drupal core not working as expected. In .htaccess, Drupal 8 includes a redirect rule to reroute /install.php to /core/install.php. As you can see from the above, .htaccess redirects (as an example) are not working even though clean URLs are working and mod_rewrite is loaded in the VM.
The text was updated successfully, but these errors were encountered:
Thanks for the tip, @thom8. That does seem to be the culprit. However, the solution you listed in that comment doesn't seem to work. When replacing the ProxyPassMatch as you suggested, php is printed to the screen rather than executed, so my home page displays:
@geerlingguy, now that we're running Apache 2.4, is the ProxyPassMatch still needed? In the thread thom8 referenced you said it had been necessary to work in Apache 2.2 and subsequent upgrades would obviate it.
It looks to me like this is blocking not just the ability of drupal to see that clean urls are enabled, but also blocking any redirects from happening at the .htaccess level.
@ba66e77 - I'm thinking we are safe to move on at this point. If we have issues with Ubuntu 12.04 and/or CentOS 6, then the solution IMO would be to make sure Apache 2.4 gets installed instead of trying to continue 2.2 support.
I'm willing to make that breaking change in my upstream role...
Issue Type
Your Environment
Your OS
Full console output
Curling path to test redirect
Curl path to test clean urls are working
Verify mod_rewrite is loaded in apache
Summary
On a clean installation of DrupalVM, I'm seeing mod_rewrite redirects set by Drupal core not working as expected. In .htaccess, Drupal 8 includes a redirect rule to reroute /install.php to /core/install.php. As you can see from the above, .htaccess redirects (as an example) are not working even though clean URLs are working and mod_rewrite is loaded in the VM.
The text was updated successfully, but these errors were encountered: