LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2005, 10:24 AM   #1
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
Apache; two quick questions


ive had the fortunate experience of succesfully serving my webpage thru apache2*53.


hey two quick questions

1. is it possible to serve a public page as well as a private page simultaneously ? Ive built a page
for my wife and only want her login or hostname able to see it here in our LAN.

2. IYHO what is the best tool, ported to Linux that is, for building graphics for a webpage like photoshop, freehand, etc... im using inkscape right now and ISO a possible alternate


Thx again in advance

Bejiita
 
Old 04-12-2005, 11:41 AM   #2
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
If her computer uses a static IP, it should be pretty easy. If not, it's possible, just a bit trickier.

You can create an alias to her page as follows:

Code:
  Alias /wife "/home/wife"
  <Directory "/home/wife">
    AllowOverride Options FileInfo
    Order allow,deny
    Allow from 192.168.1.1 (or whatever her computer's IP address is)
  </Directory>
This requires no login.

If you want to require login to see that page, you'll have to add a userid to the groups.conf file and a md5-hashed password (which you might be able to copy from /etc/shadow) in .htpasswd. Then it can be used as follows:

Code:
  Alias /wife "/home/wife"
  <Directory /home/wife>
    AuthType Basic
    AuthName "Wife's Eyes Only"
    AuthUserFile  /etc/apache/.htpasswd
    AuthGroupFile /etc/apache/groups.conf
    Require group wife
    Satisfy All
    AllowOverride None
  </Directory>
Garry

Last edited by major.tom; 04-12-2005 at 11:42 AM.
 
Old 04-12-2005, 11:50 AM   #3
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
hey man thx

yes im running static ip's this side of the router for that purpose and others ill try that and let ya know how it went
 
Old 04-12-2005, 12:31 PM   #4
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
hmmm...

didnt quite seem to work the page is still avail on the public internet

now do I add those lines in the VHost section or Main Server Section ?
 
Old 04-12-2005, 01:00 PM   #5
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
Did you restart the server?

apachectl graceful

This has to be done so that the changes to httpd.conf take effect.

I might also have gotten the "Order allow,deny" bit in the wrong order. If restarting doesn't help, try "Order deny,allow".

Garry

Last edited by major.tom; 04-12-2005 at 01:02 PM.
 
Old 04-12-2005, 01:16 PM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
You can also serve up an intranet site using name virtualhosts in Apache. If the request doesn't come to the right FQDN, the user doesn't get the webpage they were expecting.

On my system, the intranet site doesn't have a real name. (The TLD I'm using for my internal network isn't real). It exists on my DNS server, but that's the only place it exists. That way, if a user wants the internal server (used as a testbed for php applications, mostly), they just have to type in http://intranet.mylocaldomain, and for mail, it's imap.mylocaldomain and smtp.mylocaldomain
 
Old 04-12-2005, 01:26 PM   #7
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
ok I think were moving in the right direction I tried both ideas you sugg

but now im getting prompted for a usrnm/pwd and cannot get past
she is connecting from a M$/IE client and my server is listening on both
http 80 and https 443
 
Old 04-13-2005, 02:11 AM   #8
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Did you add a user/password to Apache's password file? When all else fails, read the manual.
 
Old 04-13-2005, 02:29 AM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
bejiita try this:
Code:
  Alias /wife "/home/wife"
  <Directory "/home/wife">
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from YourLanIP
  </Directory>

Last edited by gbonvehi; 04-13-2005 at 02:31 AM.
 
Old 04-13-2005, 07:34 AM   #10
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
yeah,I hear ya hammer a little wordy but it all boils down to RTFM i guess,

gbonvehi - thats a little diff from what I have ill try that later

Thx again
 
  


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
A few quick questions... gflores Linux - Newbie 3 01-10-2005 12:47 AM
Quick Q3 questions iain.ross Linux - Games 3 01-08-2005 10:32 AM
a few quick questions maybbach Linux - General 4 11-05-2004 03:14 AM
2 Quick Questions sonikntails Slackware 5 08-19-2002 02:20 AM
2 Quick Questions sonikntails Slackware 2 05-03-2002 04:31 PM

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

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