Skip to content

Instantly share code, notes, and snippets.

@abenevaut
Last active June 19, 2024 22:09
Show Gist options
  • Save abenevaut/13c8bcee7aca59cb7930ac6b94545e4e to your computer and use it in GitHub Desktop.
Save abenevaut/13c8bcee7aca59cb7930ac6b94545e4e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="Laravel rewrite" 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>
<staticContent>
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
</system.webServer>
</configuration>
@abenevaut
Copy link
Author

@abenevaut
Copy link
Author

abenevaut commented Jun 19, 2024

Windows 11:

Enable-WindowsOptionalFeature -Online -FeatureName <service-name>
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole, IIS-WebServer, IIS-CommonHttpFeatures, IIS-ManagementConsole, IIS-HttpErrors, IIS-HttpRedirect, IIS-WindowsAuthentication, IIS-StaticContent, IIS-DefaultDocument, IIS-HttpCompressionStatic, IIS-DirectoryBrowsing, IIS-CGI

Disable IIS service

Disable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole, IIS-WebServer

@abenevaut
Copy link
Author

abenevaut commented Jun 19, 2024

hosts file path on windows: C:\Windows\System32\drivers\etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment