Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

ubuntu apache setup instructions fail - DocumentRoot does not exist #143

Open
jessereynolds opened this issue Apr 1, 2014 · 1 comment
Assignees
Labels

Comments

@jessereynolds
Copy link
Collaborator

$ visage-app genapache
<VirtualHost *>
  ServerName ip-10-128-16-233.ap-southeast-2.compute.internal
  ServerAdmin root@ip-10-128-16-233.ap-southeast-2.compute.internal

  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 jessereynolds self-assigned this Apr 1, 2014
@jessereynolds
Copy link
Collaborator Author

"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">

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant