How to publish a JSP Webpage created with Netbeans? - publishing

I want to allow others to access my website created through Netbeans but I don't know how to do so. Ive searched and I found that you had to buy webservers and domain names?
However, I only want to host the webpage using my own computer since it isn't really anything commercial. How can I publish the webpage using Netbeans or my own computer? Would using IIS of Windows be possible?
Thanks!

You can download or use (if you have installed) Apache-Tomcat to deploy your web-app on your local machine.
Text from the above mentioned link.
It is possible to deploy web applications to a running Tomcat server.
If the Host autoDeploy attribute is "true", the Host will attempt to
deploy and update web applications dynamically, as needed, for example
if a new .WAR is dropped into the appBase. For this to work, the Host
needs to have background processing enabled which is the default
configuration.

Related

How to deploy rails applicaiton in windows 10/11

I have built a rails application for a friend which he doesn't have enough access to Internet, he has a PC with windows 10 installed, he wants to access his application offline, How do I deploy the application to his windows, I did searched a lot and didn't found a propper solution to it, what I want is to deploy the application and whenever he restarts the pc it automatically starts and he should be able to access it without running rails server
I tried IIS with Microsoft Web platfrom installer, which seems to be retired, and I tried to use it's offline version, and wasn't able to donwload the services, I am so fraustrated. anyone has an Idea of any web server for windows, or any other solution to this..., thanks and much appreciated it.

Trouble connecting to Docker application via subdirectory instead of port

Preface: I'm new to the whole web hosting thing, so I apologize if any information I give doesn't make sense or is inaccurate. I will do my best to explain things.
I currently have a self-hosted server running Windows Server 2019 that is hosting two sites via IIS. I recently have created an application that runs on a Docker container instance that hosts a website on port 40444. I would like to access this site via a specific subdirectory on my website instead of the port (www.mywebsite.com/website3 instead of www.mywebsite.com:40444). For clarification, here is an example of what I'm looking to do:
www.mywebsite.com/website1 (hosted on IIS)
www.mywebsite.com/website2 (hosted on IIS)
www.mywebsite.com/website3 (hosted on docker via port 40444)
I was able to get a basic reverse proxy set up and successfully got the docker application to show on localhost/, but I would prefer using a subdirectory if possible.(image below).
I attempted to change (.*) to (.*)website3$ and it did what I wanted, but the website cannot load any files (i.e css, js, etc.) and gives me the following error
https://www.mywebsite.com/css/style.css net::ERR_ABORTED 404 (Not Found)
If IIS isn't the best option to accomplish what I need I am more than happy to use a different solution. As I mentioned before, I'm new to web hosting and it was just the simplest to set up.

can a guest run code and make a independent server using live share in VS2019?

I am new using Live share in Visual Studio 2019 and I am working on a large project using ASP.NET MVC. I invited some collaborators to work on my project but the problem is that... they can only run the web app whenever I run my server locally(I configure the same port). I cannot leave the server running forever because they need to modify the C# code and server needs to restart and It is annoying that they asks me to restart the server every second. I want to know if there is a way that they can run my shared code using live share in their computers independently of mine?
Or... is Live share useless for remote working?
I cannot find solutions in google, there are zero information about it. I tried:
How to run live share server locally
Run live share server independently of host server
can guest run program or web app independently of host server live share
live share run program or web app locally
live share run web app without host server port

How do you host a Ruby on Rails application on a home server?

As the title suggests, how can I host a Ruby on Rails application on a home server. I want to be able to develop on linux and then deploy on a server running linux. I know there's PaaS out there that help with deployment and host but for a specific job I need to be able to do it on a computer that will act as a server.
Your phrasing 'run a RoR project on a local computer for production' is a little strange.
If you just want to do development on your PC and have somewhere that will host your production app for free and you can push to from your PC (i.e. the way most development works) you want Heroku.
If you literally want to use your computer as the server for a production app you can use something like Ngrok, which creates a tunnel from the web to your localhost. However you would definitely not want to run most applications like this because if you ever shut down or even closed your computer the site would stop working. Additionally I would guess there's security concerns with using your computer as a server for a publicly accessible URL for any extended period, though I don't know that for sure.

Setting up a virtual host in Webmin

I set up a virtual host in a Linux server running Webmin 1.580. I gave it a server name and a document root directory. How do I access the website under the virtual host from the internet?
Am I supposed to type the server's IP address and then the name? That's not working. It says:
Error - File not found
Is there anything else I need to do to make my site live on the server?
You should probably be using Virtualmin, in addition to Webmin, if you're going to be doing web hosting with the system. It makes most elements of the process a lot easier. The installation script will install all of the additional software you need (like BIND), and provides a friendlier GUI for web hosting tasks.
You can download it here: http://www.virtualmin.com/download
It is available in a free Open Source version, and is developed by the same people as Webmin.

Resources