Host on windows IIS or an Apache server #329
-
Wondering how/if I can host my web interface on IIS for windows. Or an Apache server. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hello ! It is definitely possible and reasonable to host sqlpage behind a reverse proxy if you don't want to expose it directly. We have a guide about how to do so using nginx on the official website: https://sql.ophir.dev/your-first-sql-website/nginx.sql But since you mention IIS and Apache, here are instructions for these servers. IISOfficial guide: https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
Url rewritingIf you want to let your users access <configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteProductsURL" stopProcessing="true">
<match url="^products/([^/]+)$" />
<action type="Rewrite" url="/products.sql?id={R:1}" appendQueryString="true" />
</rule>
<rule name="ProxyToSQLPage" stopProcessing="true">
<match url=".*" />
<action type="Rewrite" url="http://localhost:8080/{R:0}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration> Apache
URL RewritingIf you need to rewrite URLs (e.g., remove
This will let your users access Let me know if this helps, and feel free to ask if you need more detailed instructions or further assistance! |
Beta Was this translation helpful? Give feedback.
-
It would be very useful to put at least the instructions for Apache httpd in the documentation besides nginx (https://sql-page.com/your-first-sql-website/apache.sql when it will exist ;.)). |
Beta Was this translation helpful? Give feedback.
-
I added a SQLPAGE + apache configuration example to the examples. |
Beta Was this translation helpful? Give feedback.
Hello !
It is definitely possible and reasonable to host sqlpage behind a reverse proxy if you don't want to expose it directly.
We have a guide about how to do so using nginx on the official website: https://sql.ophir.dev/your-first-sql-website/nginx.sql
But since you mention IIS and Apache, here are instructions for these servers.
IIS
Official guide: https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
Install IIS:
Install the URL Rewrite Module:
Configu…