LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-09-2008, 06:12 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Web Server Directory


I just built a new Debian Etch web server running Apache2 and it works fine however when I access the IP address of the web server, it re-directs the path to http://192.168.3.100/apache2-default/ so my question is how can I delete this option? I simply have one index.htm file and that is in /var/www/html. Can I simply delete that directory? I don't want the apache2-default dir.
 
Old 01-10-2008, 09:54 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
In the file:
Quote:
/etc/apache2/sites-available/default
Change:
Code:
RedirectMatch ^/$ /apache2-default/
To:
Code:
RedirectMatch ^/$ /html/
 
Old 01-12-2008, 03:47 AM   #3
Mike_W
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Rep: Reputation: 0
The above will work, but it will still redirect / to /html/

To just have / point to /var/www/html, comment out RedirectMatch ^/$ /apache2-default/ with a hash at the start of the line, and change the DocumentRoot and Directory to /var/www/html.
 
Old 01-12-2008, 09:45 AM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by Mike_W View Post
The above will work, but it will still redirect / to /html/

To just have / point to /var/www/html, comment out RedirectMatch ^/$ /apache2-default/ with a hash at the start of the line, and change the DocumentRoot and Directory to /var/www/html.
Yup - discovered that out the hard way but thanks all for pointing me to the correct place. I don't know why Debian does that strange directory path...

Thanks all!
 
  


Reply



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
Web Dir: Can someone look at everything in a directory on my web server? RHLinuxGUY Linux - Security 4 04-13-2007 05:09 PM
LXer: Directory services made easy with Fedora Directory Server LXer Syndicated Linux News 0 12-08-2006 03:54 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

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

All times are GMT -5. The time now is 03:11 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
Open Source Consulting | Domain Registration