Page MenuHomePhabricator

Error when using HTTPS for Phabricator
Closed, ResolvedPublic

Asked by dsoap12 on Dec 23 2015, 2:11 PM.

Details

I have used the Apache config below for HTTPS and when ever I navigate to my site I get "Request parameter 'path' is not set. Your rewrite rules are not configured correctly." Any idea what rewrite rule would cause this issue? Thanks

<IfModule mod_ssl.c>
        <VirtualHost *:80>
                ServerName phabricator.mydomain.net
                Redirect permanent / https://phabricator.mydomain.net
        </VirtualHost>
        <VirtualHost *:443>

                # Change this to the domain which points to your host.
                ServerName phabricator.mydomain.net
                SSLEngine on
                SSLCertificateKeyFile /etc/ssl/private/phabricator.key
                SSLCertificateFile /etc/ssl/certs/phabricator_mydomain.net.crt
                #SSLCertificateChainFile /etc/ssl/certs/phabricator_mydomain.net.ca-bundle
                SSLProtocol All -SSLv2 -SSLv3

                # Change this to the path where you put 'phabricator' when you checked it
                # out from GitHub when following the Installation Guide.
                #
                # Make sure you include "/webroot" at the end!
                DocumentRoot /var/www/html/phabricator/webroot

                RewriteEngine on
                RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
                RewriteRule ^/favicon.ico   -                       [L,QSA]
                RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
                <Directory "/var/www/html/phabricator/webroot">
                        Order allow,deny
                       Allow from all
                </Directory>
        </VirtualHost>
</IfModule>

Answers

nitin-kawane
Updated 2,703 Days Ago

Just place

RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

and remove following line from your virtual host file.

RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
RewriteRule ^/favicon.ico   -                       [L,QSA]

I was also facing same issue.

jimh
Updated 2,699 Days Ago

Have done these things, still no change. Is there a root cause? Where is the request parameter path supposed to be set in the first place? I'm blocked here. BTW, I'm only using HTTP, so no SSL stuff or port 443 mentions in my http.conf. Also, the RewriteRule parameters have been tried with and without quote marks. No change.

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.