Note that there are some explanatory texts on larger screens.

plurals
  1. PO404 error for mod_rewrite using SSL and MAMP
    primarykey
    data
    text
    <p>I am building an app in Zend Framework at the moment and testing it all locally. I have Mamp Pro as my web server and I have a self-signed SSL which all seems to work. My problem comes when I try to do mod_rewrite - I just get 404 pages.</p> <p>The way I have things set up (which may not be the best way...)</p> <hr> <p>In Mamp I have 2 virtualhosts set up both pointing to the same web directory (webroot/public/):</p> <ul> <li>secure.myapp.com</li> <li>myapp.com</li> </ul> <p>In my public directory is my index.php file and my .htaccess file. The contents of the .htaccess file are:</p> <pre><code>SetEnv APPLICATION_ENV development RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] </code></pre> <p>When I visit <a href="http://myapp.com" rel="nofollow noreferrer">http://myapp.com</a> everything routes as it should using the mod_rewrite. But when I go to <a href="https://secure.myapp.com" rel="nofollow noreferrer">https://secure.myapp.com</a> the index page is fine, but URL routing stops working and it appears to be that the .htaccess file is being ignored.</p> <p>In my ssl.conf I have the following:</p> <pre><code>&lt;IfModule mod_ssl.c&gt; Listen 443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl SSLPassPhraseDialog builtin SSLSessionCache dbm:/Applications/MAMP/logs/ssl_scache SSLSessionCacheTimeout 300 SSLMutex file:/Applications/MAMP/logs/ssl_mutex &lt;VirtualHost _default_:443&gt; SSLEngine on DocumentRoot "/webroot/public" ServerName secure.myapp.com ServerAdmin you@example.com ErrorLog /Applications/MAMP/logs/ssl_error_log TransferLog /Applications/MAMP/logs/ssl_access_log SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile /Applications/MAMP/conf/apache/ssl_cert/server.crt SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl_key/server.key CustomLog /Applications/MAMP/logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" &lt;/VirtualHost&gt; &lt;/IfModule&gt; </code></pre> <p>Does anybody have any ideas on this? I'll be sooooo appreciative of the help as it's seriously hindering my development!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload