LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-16-2004, 08:24 AM   #1
gamehack
Member
 
Registered: Jun 2003
Location: Sevenoaks, UK
Distribution: Ubuntu
Posts: 183

Rep: Reputation: 30
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

Last edited by gamehack; 10-16-2004 at 03:39 PM.
 
Old 10-16-2004, 01:34 PM   #2
Valso
LQ Newbie
 
Registered: Oct 2004
Location: Madison, WI
Distribution: Debian
Posts: 7

Rep: Reputation: 0
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.
 
Old 10-16-2004, 03:38 PM   #3
gamehack
Member
 
Registered: Jun 2003
Location: Sevenoaks, UK
Distribution: Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
Cheers Valso
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql 5.0.3 and Apache2 question bshearer *BSD 2 05-15-2005 03:51 AM
CGI apache2 question gothrog Linux - Software 1 09-16-2004 03:31 PM
Apache2 extended status statistics question gyrus Linux - Networking 3 03-12-2004 11:50 AM
Apache2 PHP question p0rky Linux - Newbie 1 05-29-2003 06:43 AM
Hi Everyone, quick apache2 question wolfwolf Linux - Networking 4 04-15-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration