Error 403.14 when first attempting to access Symfony app in Linux

Bernard8A 1 Reputation point
2021-04-28T09:04:35.153+00:00

Deployment seems to be fine, but when attempting to access the app I am getting the 403.13 error as below:

92084-screenshot-2021-04-28-at-105842.png

When attempting to access it directly as below, it did work. So it seems that the .htaccess files are not being taken into consideration:

https://quiamo-api.azurewebsites.net/public/index.php

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,335 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Bernard8A 1 Reputation point
    2021-04-29T07:11:31.117+00:00

    And that means exactly what??

    The reason I put that tag there was that no other tag fit.

    0 comments No comments

  2. Bernard8A 1 Reputation point
    2021-04-29T07:48:31.203+00:00

    Note that I have placed an .htaccess file on root as per your documentation:

    set path to /public

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^(.)
    RewriteRule ^(.
    )$ /public/$1 [NC,L,QSA]
    </IfModule>

    And an additional at /public

    Redirect all requests to index.php

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [QSA,L]
    RewriteCond %{REQUEST_URI} ^/api.* [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ /index.php [QSA,L]
    RewriteCond %{REQUEST_URI} ^/confirm-user/.* [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ /index.php [QSA,L]
    RewriteCond %{REQUEST_URI} ^/password-recovery/.* [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ /index.php [QSA,L]
    RewriteCond %{REQUEST_URI} ^/contact-form$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ /index.php [QSA,L]
    </IfModule>

    0 comments No comments

  3. Bernard8A 1 Reputation point
    2021-04-29T09:12:24.833+00:00

    It would seem that the app is NOT running on Apache.

    These are the response headers I get when trying to access it:

       server: Microsoft-IIS/10.0 x-powered-by: ASP.NET
    

    It should be something like:

    Server: Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.3.9 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.24.0
    X-Powered-By: PHP/7.3.9

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.