visage icon indicating copy to clipboard operation
visage copied to clipboard

ubuntu apache setup instructions fail - DocumentRoot does not exist

Open jessereynolds opened this issue 12 years ago • 1 comments

$ visage-app genapache
<VirtualHost *>
  ServerName ip-10-128-16-233.ap-southeast-2.compute.internal
  ServerAdmin [email protected]

  DocumentRoot /var/lib/gems/1.8/gems/visage-app-2.1.0/lib/lib/visage-app/public

  <Directory "/var/lib/gems/1.8/gems/visage-app-2.1.0/lib/lib/visage-app/public">
    Options FollowSymLinks Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

</VirtualHost>
# visage-app genapache > /etc/apache2/sites-available/visage
# a2ensite visage
Enabling site visage.
To activate the new configuration, you need to run:
  service apache2 reload
# a2dissite default
Site default disabled.
To activate the new configuration, you need to run:
  service apache2 reload
# service apache2 reload
 * Reloading web server config apache2
Warning: DocumentRoot [/var/lib/gems/1.8/gems/visage-app-2.1.0/lib/lib/visage-app/public] does not exist
[Tue Apr 01 23:41:40 2014] [warn] NameVirtualHost *:80 has no VirtualHosts
   ...done.

jessereynolds avatar Apr 01 '14 23:04 jessereynolds

"lib" is duplicated in /var/lib/gems/1.8/gems/visage-app-2.1.0/lib/lib/visage-app/public

Rectifying the following two lines in /etc/apache2/sites-available/visage fixes this:

  DocumentRoot /var/lib/gems/1.8/gems/visage-app-2.1.0/lib/visage-app/public

  <Directory "/var/lib/gems/1.8/gems/visage-app-2.1.0/lib/visage-app/public">

jessereynolds avatar Apr 01 '14 23:04 jessereynolds