LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Apache2 Question (https://www.linuxquestions.org/questions/debian-26/apache2-question-243366/)

gamehack 10-16-2004 07:24 AM

Apache2 Question [SOLVED]
 
Hello all,

I just installed apache2 and I am a liite bit confused, because when I type http://localhost/ it opens http://localhost/apache2-default/ ! How can I change this behaviour? Thanks in advance

Cheers,
gamehack

Valso 10-16-2004 12:34 PM

I recently struggled setting up Apache 2 myself, and had the same problem.

Under, /etc/apache2/sites-enabled, there should be a file maybe called 000-default. Open that in an editory and look for the part that says:

Code:

        <Directory /var/www/>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride None
              Order allow,deny
              allow from all
              # This directive allows us to have apache2's default start page
              # in /apache2-default/, but still have / go to the right place
              RedirectMatch ^/$ /apache2-default/
        </Directory>

Should be as simple as just commenting this part out, and then restarting apache2.
The
Code:

RedirectMatch ^/$ /apache2-default/
Is the main line that causes your situation to happen.

gamehack 10-16-2004 02:38 PM

Cheers Valso :)


All times are GMT -5. The time now is 02:52 AM.