Hi Guys, Since i am from Coding background and have less knowledge on Server Part, I have my 3-4 websites which are running on current Machine (built in Advance PHP). on LAMP. Now i have a java web application which has mysql database. Can you Please help me out in running that java web application on My LAP Stack. This should not affect my current PHP web applications. Please reply fast !!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
There are multiple ways you can do this and/or setup server configuration(s) to accomplish this.
In a single droplet situation you can use a proxy server like NGINX or HAProxy to answer on ports 80/443 and route the traffic to the appropriate backend server/project - In your case this would be your LAMP and Java projects - Each of these project would need to be configured to answer on a different port then 80/443 like 8080, 81, this is up to you.
Here is a great start on how to do so with NGINX:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.