mardi 22 décembre 2015

Laravel Project in a IIS Server

I have a project in Laravel 4.2 over a LAMP Server, so i asked the client a server to upload the project via FTP, when i try to test the app i saw a message from an IIS server (don't know what version), so i'm trying with a web.config file under public folder but i still cannot see correctly the project.

Mi web.config:

<?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
            <defaultDocument>
                <files>
                    <clear />
                    <add value="index.php" />
                    <add value="default.aspx" />
                    <add value="Default.htm" />
                    <add value="Default.asp" />
                    <add value="index.htm" />
                    <add value="index.html" />
                </files>
            </defaultDocument>
            <rewrite>
                <rules>
                    <rule name="Imported Rule 3" stopProcessing="true">
                        <match url="^(.*)$" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAll">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />                     
                        </conditions>
                        <action type="Rewrite" url="index.php/{R:1}" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>

So, all i have is the message:

403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.

Any idea about what i'm missing?

Thanks




Aucun commentaire:

Enregistrer un commentaire