LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2012, 07:54 PM   #1
Adriann
Member
 
Registered: Sep 2003
Location: St. Paul Mn
Distribution: OpenSuse 13.1 AND Win 10
Posts: 76

Rep: Reputation: 18
Question Apache linking to different drive


Greatings all -

I have to stress that I am a beginner when it comes to using Apache 2 and SeaMonkey. I used Front Page years ago, but that was a different OS. I've come across an issue that has me stumped, as I am not sure if the problem resides with Apache configuration or Suse permissions, maybe both?

I am running Suse 11.4, along with Apache 2. My Apache 2 files are located in /etc along with Http.d and the other files associated with
Apache files, this is how it loaded from start. The htdocs and actual web page are located in /srv.

The Issue -

I want all of my user web accessable files located on a second terra byte drive. I cannot access folders on this drive using SeaMonkey for nothing. If I make a link to a folder on the second drive (sdb1) I get a 'page not found' error. Qualification - yes, I have properly saved the changed page and do a screen refresh on Firefox. The main html pages work fine.

Here a glimps of my httpd.conf file largely unchanged from install, primarily 'cuz I dont know what I am doing.

# forbid access to the entire filesystem by default
<Directory />
Options FollowSymlinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Options +FollowSymlinks
Order allow,deny
Deny from all
</Files>

# List of resources to look for when the client requests a directory

Can anyone give me an idea how to get this straightened out??

Adri
 
Old 06-03-2012, 03:14 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Hi,

Assuming that the 2nd drive is mounted under a path like /mnt/storage, you should add in apache config file:
Code:
Alias /web /mnt/storage
<Directory  /mnt/storage>
Allow from All
</Directory>
Regards
 
Old 06-17-2012, 09:32 PM   #3
Adriann
Member
 
Registered: Sep 2003
Location: St. Paul Mn
Distribution: OpenSuse 13.1 AND Win 10
Posts: 76

Original Poster
Rep: Reputation: 18
Bathory!!!! Thank You, Thank You, for your help! :-) Just one question:

Apache has a plethora of configuration files, which configuration file do I
install the code into??

Apologies for not responding to your comments sooner, but life always seems
to get in the way.

Adriann
 
Old 06-18-2012, 12:13 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Hi,

Quote:
Apache has a plethora of configuration files, which configuration file do I
install the code into??
You should add the snippet above in /etc/apache2/httpd.conf

Regards
 
  


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
Linking Apache and Tomcat bstuart Linux - Software 1 07-11-2005 03:13 AM
linking mrtg and apache pkrishna10 Linux - Software 3 12-15-2004 04:06 PM
Linking mrtg with apache pkrishna10 Linux - Software 0 12-15-2004 03:53 AM
soft linking for apache? theserge Linux - Software 5 11-26-2003 01:07 PM
apache linking question jzs9783 Linux - Newbie 3 06-22-2002 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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