PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, August 1, 2022

[FIXED] How do I host a website (parts of it) on Nginx and Apache at the same time

 August 01, 2022     apache, hosting, nginx, vps, wordpress     No comments   

Issue

I am looking to run my main website on www.example.com and www.example.com/page on nginx (React/Next.js) and the blog on www.example.com/blog on Apache (wordpress).

Is this possible ?

I am using a VPS

I want the ip address to remain the same


Solution

You have a few options:

  • You can configure an apache or nginx server that can be reached from the public and with a proxyPass configuration you can serve other content (based on path and or domain) from another server (running apache or ngix or what you prefer)
  • You can configure a loadBalancer, such as HAProxy, and direct request to a specific backed (apache, nginx or whatever you prefer) according to the URL/domain requested.


Answered By - Inc0
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing