开发者

How to change the URL path in Apache?

开发者 https://www.devze.com 2023-03-05 23:46 出处:网络
I have a url now that is accessed like: http://s1.name.com/healthApp I want i开发者_开发知识库t to be accessed it like

I have a url now that is accessed like:

http://s1.name.com/healthApp

I want i开发者_开发知识库t to be accessed it like

http://healthApp.name.com

How do I set this up in Apache (Cent OS)


You will need to setup:

  • A DNS entry pointing the DNS entry healthApp.name.com to your webserver
  • A VirtualHost entry on the server to handle this new host name
  • Set the DocumentRoot of the new vHost to the healthApp directory
  • Check any configuration of your web application so it knows it's running from the new location
0

精彩评论

暂无评论...
验证码 换一张
取 消