I have a windows machine which is running Python 3.4 with Flask.
But of course the Flask development server is slow and sometimes I need to host my applications locally for local usage so I need to host it on a more robust web server on windows.
How to do that ?
Thanks in advance.
I already got it. used This Guide Here to setup apache with mod_wsgi.
Related
Searched all web and there are many solutions for Linux but can not find any solutions for Windows.
What I have
Host; windows server 2019 + hyper-v + docker
Containers one with nodejs(ui.domain.com) and other with php api (api.domain.com)
What I need
A nginx reverse proxy that could map both sub domains on port 80 into each container
Please don’t ask why I am using windows and not Linux, there are other application that work only in windows containers.
I am looking for a set of command lines which could accomplish this issue.
You can perfectly fine use Windows nothing wrong with that, however I would not use Nginx on windows they say this on their own website:
Due to this and some other known issues version of nginx for Windows is considered to be a beta version.
So you could technically work around it by running nginx also in Docker but I would say you are complicating things then. Since you have Windows Server 2019 I would just use IIS and reverse proxy into the docker containers this is much simpler and works perfectly fine.
You can do this by installing the following two applications into IIS:
URL Rewrite:
http://www.iis.net/downloads/microsoft/url-rewrite
Application Request Routing:
https://www.iis.net/downloads/microsoft/application-request-routing
I basically do the same for my Kibana installation you can have a look on my tutorial and skip to the IIS part, and do the exact same but then for your docker containers:
https://ulyaoth.com/tutorials/how-to-install-elastic-stack-6-6-on-windows-server-2019/
There probably more specific guides on this, I did a quick google and found the following:
https://techcommunity.microsoft.com/t5/IIS-Support-Blog/Setup-IIS-with-URL-Rewrite-as-a-reverse-proxy-for-real-world/ba-p/846222
https://www.sapho.com/documentation/how-to-configure-microsoft-iis-http-server-as-a-reverse-proxy-for-sapho-server-running-on-apache-tomcat/
https://tecadmin.net/set-up-reverse-proxy-using-iis/
I hope that helps you! :)
I have developed a Jooby-Application which is hosted on a netty server. I can access the application on localhost and tests were fine. Now I want to make the app accessable over internet and dont know what is the best way to reach this goal?
The complete application is hosted on a Windows Server, because it uses Excel. (Read/Write over Apache POI. For macros it has to be Windows) Should I try to connect the running netty-server with IIS or can I just forward the requests from outside to localhost? The last mentioned approach propably is a bad idea regarding security issues.
It works with reverse proxy over IIS. I had to install some features like Application Request Routing and URL Rewrite. Then I can start the jooby application (netty server) as usual on a specific port at localhost and set a reverse proxy to it.
I am not sure why being on a window is necessary, anyways, Netty is just a Java network programming framework, it can run on any platform where Java is installed.
You need to host a server, you can buy a VPS, install windows as OS, install Java, you can run your application as you like.
What I understand is you need to test it, for that you can use any port forwarding service like https://pagekite.net/support/intro/features/ to enable "world access" to localhost
I Don't know much about server things.
But my client says his server is Apache version2.2, .php files run asPHP5 FastCGI
So is it Linux hosting server or Window hosting server.
Thank you.
You can run Apache on Linux and Windows so you can't really say what operating system is running on that server.
I am trying to run a website from my computer using Spring Tool Suite (STS). Using pivotal tc Server I can access this website that I made by running the server and using localhost:8080 as a url.
My laptop contains other software that is permitted to only run in the laptop and it is needed to run my code in Spring tool suite.(School policy to SSH's into another computer to get access to my database; it is a requirement)
How would I be able to access that website that is running in my laptop that uses pivotal tc Server. Please assume I know nothing about IP address and DNS. Also, assume that I can move my laptop around like a mobile device.
To solve this problem you need to tunnel to your local machine
I want to use xampp as a server (not local server but more like a server with a dedicated ip.) Can xampp be used for a server besides local? Maybe I'm just thinking backwards.
If You have Windows server, it is good option but if You are on Linux, it's not the best idea.