LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-04-2006, 09:11 AM   #1
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Rep: Reputation: 30
apache directory


Hello,

I am setting up a fileserver on mandriva2006.

I have 2 harddisk :

1. 40 GB PATA - primary ( mandriva installed )

2. 300 GB SATA as - /fileserver.

I have all my software / images / tutorials , etc... on the
SATA disk mounted as - /fileserver.

My index.html page is in /var/www/html folder on
primary HDD.

On the index.html page I have put links to all
the softwares stored in /fileserver directory.

The problem I am facing is that from a client system
when I click those links I do not get the download
dialog box. I get error.

If I put the software in /var/www/html dir then it
works.

But I have all my software stored only in - /fileserver.
And that is how I want. All html stuff in /var/www/html dir
and all softwares in /filserver dir.

How to solve this problem ?

Is it possible map aditional dir in http.conf ?

Thanks

Varun
 
Old 01-04-2006, 09:49 AM   #2
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
It is possible to guide apache to other directories. Here is some documentation on it.
 
Old 01-05-2006, 09:23 PM   #3
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Original Poster
Rep: Reputation: 30
Is that OK,

----------------------- http.conf-------------------
.
.
.
.

<Directory "/var/www/html">


<Directory /fileserver>
Order allow,deny
Allow from all
Options -Indexes FollowSymLinks MultiViews
</Directory>

AllowOverride None

# Controls who can get stuff from this server.
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>

</Directory>
.
.
.
.
-------------------------- end http.conf --------------------------

Thanks

Varun
 
Old 01-06-2006, 09:05 PM   #4
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
That looks fine. If you want to make an alias to it, you could do:

Alias /alias_name /fileserver
<Directory /fileserver>
Order allow,deny
Allow from all
Options -Indexes FollowSymLinks MultiViews
</Directory>
 
Old 01-07-2006, 04:23 AM   #5
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Original Poster
Rep: Reputation: 30
But I am getting the following error :

[root@fileserver ~]# /etc/init.d/httpd restart
Starting httpd: Syntax error on line 356 of /etc/httpd/conf/httpd.conf:
<Directory not allowed here
[FAILED]
[root@fileserver ~]#

Thanks

Varun
 
Old 01-08-2006, 07:13 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
I think its because you've put the <directory></directory> block for /fileserver inside the other directory block. Try this instead:
Code:
<Directory "/var/www/html">

AllowOverride None

# Controls who can get stuff from this server.
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>

</Directory>

<Directory /fileserver>
Order allow,deny
Allow from all
Options -Indexes FollowSymLinks MultiViews
</Directory>
 
  


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
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Apache Directory 2782d4 Linux - Software 3 10-12-2005 03:33 PM
apache directory Longinus Linux - Software 2 04-05-2004 05:37 AM
apache directory index spank Linux - Newbie 1 12-10-2003 11:47 AM
Apache directory... Z28kid Linux - Newbie 9 02-17-2003 05:12 PM

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

All times are GMT -5. The time now is 09:16 AM.

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