Re: How to redirect index page? - SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Csanyi Pal <csanyipal@xxxxxxxxx> writes:

> Hi,
>
> on my apache2 server I have installed two aliases:
> joomla in /usr/share/joomla/
> and 
> moodle in /usr/share/moodle.
>
> In /etc/apache2/conf.d/moodle I have the line:
> Alias /moodle /usr/share/moodle/
>
> and in /etc/apache2/conf.d/joomla I have the line:
> Alias /joomla /usr/share/joomla/
>
> One can open booth sites:
> http://cspl.me/joomla
> and
> http://cspl.me/moodle
>
> In /var/www/ I have only an index.html file.
>
> How can I redirect the index.html page so if one want to open the
> http://cspl.me then get opened only the http://cspl.me/joomla and from
> there if want can open from a menu the http://cspl.me/moodle ?

I solve this problem by editing the 
/etc/apache2/sites-enabled/000-default

file:
#       DocumentRoot /var/www
        DocumentRoot /usr/share/joomla

and

#       <Directory /var/www/>
        <Directory /usr/share/joomla/>

Is this the right solution?

-- 
Regards from Pal


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux