I have dedicated server hosting in Hostgator. - CentOs 6 64bit - Dedicated server - Apache I had a dedicated host IP address, where I created an βAβ record with an IP address (domain hosting is located in GoDaddy).
My problem is creating a virtual host application for points in my domain. I am trying to configure a domain. I did not find the conf file in which the document root is configured by default. I tried to modify the conf file in etc / httpd / conf / httpd.conf, but did not use it. One default page is the root document (/ usr / local / apache / htdocs). I need to find the root virtual configuration of the document, and then point my domain to this. I need help with this.
Here is my default virtualhost setting in the httpd conf file:
NameVirtualHost * # Default vhost for unbound IPs <VirtualHost *> ServerName examle_server_name DocumentRoot /usr/local/apache/htdocs ServerAdmin root@example _server <IfModule mod_suphp.c> suPHP_UserGroup nobody nobody </IfModule> </VirtualHost>
Even if I change the server name to my domain name, there is no chnage. Also, if I delete these lines, it shows the default page, which is located in / USR / local / Apache / HTDOCS.
How / Where can I change this to apply / direct my rails application to the domain.
I also need the Apache VirtualHost configuration of the rails application configuration, which runs on the 3000 port rail
Help me please.
Regards, Ranjit
source share