[netmagis] Re: Root base app
- From: Pierre DAVID <pdagog@xxxxxxxxx>
- To: netmagis@xxxxxxxxxxxxx
- Date: Tue, 8 Mar 2016 08:57:49 +0100
On Fri, Mar 04, 2016 at 05:55:32PM +0100, Albert Shih wrote:
Hi
Stupid question :
How can I make the netmagis app at root ? meaning
http://netmagis.domain
and not
http://netmagis.domain/netmagis
I try to use rewrite and that's not work (Ok I'm not a rewrite guru).
NB: We using apache
Hi Albert,
if your server is dedicated to Netmagis, you could begin by replacing
the following directives:
--- remove --------- remove ---------- remove --------------------------------
Alias "/netmagis/css" "PREFIX/www/netmagis/css"
ScriptAlias "/netmagis" "PREFIX/www/netmagis"
<Directory PREFIX/www/netmagis>
Require all granted
</Directory>
--- remove --------- remove ---------- remove --------------------------------
by:
--- add ------------ add ------------- add -----------------------------------
DocumentRoot "PREFIX/www/netmagis"
<Location />
Require all granted
SetHandler cgi-script
Options ExecCGI
</Location>
<Location /css>
Require all granted
SetHandler default-handler
Options -ExecCGI
</Location>
--- add ------------ add ------------- add -----------------------------------
Adapt the "RedirectMatch" accordingly.
Good luck!
Pierre
Other related posts: