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

Configuring apache2 default virtualhost for sub URI /visage. #14

Closed
ghost opened this issue May 10, 2010 · 2 comments
Closed

Configuring apache2 default virtualhost for sub URI /visage. #14

ghost opened this issue May 10, 2010 · 2 comments

Comments

@ghost
Copy link

ghost commented May 10, 2010

/etc/apache2/sites-enabled/000-default

<VirtualHost *:80>

ServerName hostname
ServerAdmin admin@hostname

DocumentRoot /var/www/

<Directory />
        AllowOverride None
        Options FollowSymLinks
</Directory>

<Directory /var/www/>
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
</Directory>

# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined

##
# visage
##

Alias /visage /usr/share/visage/public/
# following symlink also exists: /var/www/visage >>> /usr/share/visage/public/

<Location /visage>
    PassengerAppRoot /usr/share/visage/
</Location>

RackBaseURI /visage
RackEnv production

<Directory /usr/share/visage/>
    Options +FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>    

<Directory /usr/share/visage/public/>
    Options +FollowSymLinks +Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

RedirectMatch "^/visage*$" "http://hostname/visage/"
@ghost
Copy link
Author

ghost commented May 10, 2010

Please test config first before commenting.

@auxesis
Copy link
Owner

auxesis commented Jun 25, 2010

Thanks for posting this config.

I'm going to close this issue, but create another for improving the documentation in the wiki on using Visage under a sub URI.

jessereynolds pushed a commit to jessereynolds/visage that referenced this issue Jun 17, 2015
jessereynolds pushed a commit to jessereynolds/visage that referenced this issue Jun 17, 2015
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant