Unable to point website domain to rails app via virtual host + centos + apache -


i have dedicated server web hosting in hostgator. - centos 6 64bit - dedicated server - apache had dedicated host ip have created "a" record ip(domain hosting in godaddy).

my problem creating virtual host point rails app domain. trying configure domain. didn't find conf file default document root configured. tried changing conf file in etc/httpd/conf/httpd.conf, no use. default document root(/usr/local/apache/htdocs) page rendering. need find document root virtual configuration , need point domain that. need regarding this.

here default virtualhost setting in httpd conf file:

namevirtualhost * # default vhost 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 change server name domain name there no chnage. if remove lines, showing default page in /usr/local/apache/htdocs.

how/where can change effect/point rails app domain.

also need apache virtualhost settings of rails app configuration running on rails 3000 port

help me please.

regards, ranjit

for deploying apps in server use virtual host configuration

<virtualhost *:80>     servername mydomain.com     documentroot /path/to/rails/public/folder       <directory /path/to/rails/public/folder >         options indexes followsymlinks         allowoverride         require granted     </directory>  </virtualhost> 

i creata file in /etc/apache2/sites-enabled/mysite.conf, in ubuntu servers. donn't know if location in centos same.

you can create file 3000 port app.

i skipped passengger (https://www.phusionpassenger.com/) settings in file. use serving rails apps.

after changes need restart server

sudo service apache2 restart 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -