Skip to content

OSPOS deployment using IIS instead of apache.

cwtechshiz edited this page Aug 16, 2020 · 1 revision

Just wanted to inform anyone that is looking for support for Windows Server Internet Information Services. I use apache on my dev server and had absolutely no issues but my production server is windows based and found out quickly that OSPOS did not support it. I didn't want to have to take down the current webhost in use or install/config apache to use another port.

After some trial and error, I succeeded in making it work and have some simple steps for the next person.

  1. Point your webroot folder to "/ospos_path/public" directly
  2. install the url_rewrite module in iis manager
  3. import the .htaccess to make a web.config file with the rewrite rules
  4. everything else can be followed in the install.md

Everything works exactly as it should, took me longer than i would like to admit to figure that out. Keep up the good work everyone!

The following is my web.config file in my /public/ directory if anyone wants to edit/add it in to the github.

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Imported Rule 1" 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}" appendQueryString="false" /> </rule> <rule name="Imported Rule 1-1" 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}" appendQueryString="false" /> </rule> </rules> </rewrite> </system.webServer> </configuration>

Clone this wiki locally