LinuxQuestions.org
Help answer threads with 0 replies.
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 08-29-2005, 05:58 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Apache Set Up?


Debian seems to have apache running just fine on my server:

Link

My question is how do I get Apache now to display a index file I just created to show my website is under construction rather than the generic Apache website page.

I have one index file and one .jpg associated w/ the index.html page. Now my question is where do I place the 2 under? My guess would be

/var/www/apache2-default

Here are the two files with their associated permissions so thay may need to be modified before Apache is able to display them:

-rw-r--r-- 1 root root 302 2005-08-29 05:43 index.html
-rw-r--r-- 1 root root 252856 2005-08-28 21:06 infection.jpg


Thanks for any assistance.
 
Old 08-29-2005, 07:42 AM   #2
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
I believe you can put it right in /var/www .

If you look at the config file for the default site in /etc/apache2/sites-available/ - it does a redirect to the apache2-default until you do something else, I personally disable that part from the config.
 
Old 08-29-2005, 08:01 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Ah, because I just edited my /var/www/apache2-default/index.htm.en file.

Once I add my own personal index file to /var/www, can I delete the "apache2-default" folder?
 
Old 08-29-2005, 10:18 AM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I moved my index.html file and associated .jpg file that links in the index.html to /var/www and it failed to display my index.html page. I had to move it back to /var/www/apache2-default in order to fix it again.

What am I doing wrong?
 
  


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
Apache set up darkgamer20 Linux - General 17 12-11-2004 06:34 PM
how do i set up apache?? snakeo2 Linux - Newbie 1 03-27-2004 01:28 PM
Apache set up spoody_goon Linux - Newbie 5 10-19-2003 02:41 PM
How to set up apache ? sameermanagoli General 1 06-26-2003 08:34 PM
apache set up myquestion Linux - Software 1 02-21-2002 02:11 PM

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

All times are GMT -5. The time now is 10:46 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