The .NET core API requires apache set up as reverse proxy. How can I run both the web API and my other normal web site that doesn’t require any reverse proxy stuff.
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
@bjm3819
You need to use a different apache configuration file for each one of them.
I will assume that you have
webapi.net
DNS record for the .net core web API andlaravel-app.com
DNS record for the laravel application, here is an example config for each one of them.The first one webapi.conf
The second one laravel-app.conf
Enable the two new sites
Now you can access the net core API with this url
http://webapi.net
and the laravel application with this urlhttp://laravel-app.com
.