apache2 - Unable to point my site on Domain_Name or IP_Address -



apache2 - Unable to point my site on Domain_Name or IP_Address -

i have completed next apache2 confirmation

<virtualhost *:80> servername start.example.com documentroot /var/www/start.example.com/public/ <directory "/var/www/start.example.com/public/" > allowoverride allow options -multiviews railsbaseuri /rails railsenv production rewriteengine on </directory> </virtualhost>

i set file in /etc/apache2/site_availables/start.example.com.conf

same file set in site_enables

service start succesfully it's not point domain name or ip address.

i don't getting what's wrong this.

please help me. in advance.

in document root or directory, need give path of project.

<virtualhost *:80> servername start.example.com documentroot /var/www/projectname/public/ <directory "/var/www/projectname/public/" > allowoverride allow options -multiviews railsbaseuri /rails railsenv production rewriteengine on </directory> </virtualhost>

after this, need restart apache2 server.

sudo service apache2 restart

now, lastly step go hosts file

ubuntu : /etc/hosts windows: c:\windows\system32\drivers\etc\hosts

add, host here

127.0.0.1 start.example.com

now, browse! work.

apache2 passenger ubuntu-10.04

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -