ruby on rails - Apache 2.4.7 error client denied by server configuration: /home/appname -


so using digital ocean host ruby on rails application

i used tutorial on how deploy it: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-passenger-and-apache-on-ubuntu-14-04

after completing have tried access server through ip address , gives me 403 access denied error , checking apache error log find following message:

ah01630: client denied server configuration: /home/appname, referer: http://ipaddress/ 

my /etc/apache2/sites-available/appname.conf files follows:

<virtualhost *:80>     # servername directive sets request scheme, hostname , port t$     # server uses identify itself. used when creating     # redirection urls. in context of virtual hosts, servername     # specifies hostname must appear in request's host: header     # match virtual host. default virtual host (this file)     # value not decisive used last resort host regardless.     # however, must set further virtual host explicitly.     servername www.peerparking.com     serveralias www.peerparking.com     serveradmin webmaster@localhost     documentroot /home/peerparking/peerparking/peerparking/public     railsenv development      # available loglevels: trace8, ..., trace1, debug, info, notice, warn,     # error, crit, alert, emerg.     # possible configure loglevel particular     # modules, e.g.     #loglevel info ssl:warn      documentroot /home/peerparking/peerparking/peerparking/public     railsenv development      # available loglevels: trace8, ..., trace1, debug, info, notice, warn,     # error, crit, alert, emerg.     # possible configure loglevel particular     # modules, e.g.     #loglevel info ssl:warn      errorlog ${apache_log_dir}/error.log     customlog ${apache_log_dir}/access.log combined      <directory /home/peerparking/peerparking/peerparking/public>            require granted            options followsymlinks     </directory>      # configuration files conf-available/,     # enabled or disabled @ global level, possible     # include line 1 particular virtual host. example     # following line enables cgi configuration host     # after has been globally disabled "a2disconf".     #include conf-available/serve-cgi-bin.conf </virtualhost>  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet 

my ruby on rails app located @ /username/home/appname/appname/appname

dont ask why have 3 successive folders named same, messed pulling repository


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -