LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-25-2002, 03:48 PM   #1
nial
LQ Newbie
 
Registered: Apr 2002
Location: Chicago, IL, USA
Distribution: Mandrake, Gentoo, mklinux ;)
Posts: 3

Rep: Reputation: 0
Setting up Apache


I hate to ask a question as broad as this, but I'm not really sure where to start. I have a low-traffic server that was running Windows 2000 Server (which really started to be horrible) that I just switched over to Mandrake. Basically, I want to set up my website to be just like it was before. I updated the html files to be shtml, and I used Netconf to set things up as far as I could from there. The page loads fine, however I have a major issue with links. Under IIS, I simply had links that pointed to a virtual directory, such as "uploads" and they would just return a raw directory listing. I can't seem to get that to work in Apache. I have tried both sym-linking to directories outside of my home html directory, and also simply creating directories inside the html directory. Is this even possible under Apache? I'm guessing yes, but I can't see how. Also, I tried setting my home html directory to a different directory but it would not work right. I would get a 403 error (forbidden) when I tried to load the page. I can see this has something to do with setting file permissions, but I'm not exactly sure what they should be set to or how to do that properly. I would greatly appreciate any help. (I don't want to be forced back to windows! no!)
 
Old 04-25-2002, 08:14 PM   #2
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
check httpd.conf

In particular, you need something like this in your Apache configuration (and inside your VirtualHosts declaration if you use it):

<Location />
Options Indexes
IndexOptions +ScanHTMLTitles -IconsAreLinks +FancyIndexing
AllowOverride None
order deny,allow
allow from all
</Location>

What this particular configuration block does is for the web site root (and any directories under it):

- auto-creates an index if there is no index.(html|htm|pl|cgi|php, etc.)
- turns on fancy indexing and HTML title scanning (makes listings prettier)
- disables any .htaccess files
- sets up basic access rights (everyone can access)

Apache has VERY good documentation on their website. (http://www.apache.org) -- I highly reccomend you pull up a chair and do some reading, I learned a lot there.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up apache deftones Linux - Newbie 8 03-19-2005 04:48 PM
Setting up Apache 2... bnscomp Mandriva 1 10-09-2003 01:24 PM
Setting up Apache Big Brad Linux - Newbie 16 07-14-2003 05:04 AM
Setting up apache... another one mattbuechler Linux - Software 3 07-02-2003 10:58 AM
Setting up Apache amigatec Linux - Software 1 09-20-2002 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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