[newbie] Apache question, blocking outside links?

2003-11-26 Thread John Retermeyer
Greetings.

Please excuse this post, as I was not able to find
anything in the faq which mentions script that would
either block outside links from one's own server.

Take such as a link from an offencive or pornographic
website that linked one's web server to its front
page.

Is there a way to block such a link from say
www.pornpictures.com (a bogus address just for
example)
so that all who clicked on this link from the
offencive site would either get an error or be
re-directed?

Thank you for your time.

John.

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Apache question

2003-06-10 Thread JoeHill
On Tue, 10 Jun 2003 09:53:04 -0300
Yves Arsenault [EMAIL PROTECTED] uttered:

 But what I would like is that when I type the IP of the server, I get
 the apache page, which I could change to something else.

For that, you can either just replace the default Apache page with your
own index.whatever (html, php, etc.) *or* change the DocumentRoot
from /var/www/html to another dir and create your own index in there.

-- 
 Joehill
 Registered Linux user #282046
 Homepage: http://nodex.sytes.net
 15:07:12 up 7 days, 13:11,  2 users,  load average: 0.00, 0.00, 0.00

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Apache question

2003-06-10 Thread ed tharp
On Tue, 2003-06-10 at 08:53, Yves Arsenault wrote:
 Hello,
 
 Well, I would like to host a couple of sites on the server
 
 type the name (www.domain.com) and get the site (my virtual host is
 working)...
 
 But what I would like is that when I type the IP of the server, I get the
 apache page, which I could change to something else.
 
 Yves
 
if it is on the local machine, 127.0.0.1 should still get to whatever
you have set as the local machines document root.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Steven Broos
 Sent: June 9, 2003 5:18 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] Apache question
 
 What exactly do you want to come up, when you type in what IP ?
 Maybe you can give an example or so ?
 
 Steven
 
 On Mon, 2003-06-09 at 20:27, Yves Arsenault wrote:
  Hello again,
 
  I'm pleased to report that my site now comes up, Bind works well,
 Apache
  works well.
 
  Now when I type in the IP address in my browser the website comes up
 by
  default...
 
  How do I set the IP to point to another page?
 
  Thanks again,
 
  Yves Arsenault
  Carrefour Infotech
  5,promenade Acadian
  Charlottetown, IPE
  C1C 1M2
  [EMAIL PROTECTED]
  (902)368-1895 ext.242
  ICQ #117650823
 
 
 
 __
 
 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] Apache question

2003-06-09 Thread Yves Arsenault

Hello again,

I'm pleased to report that my site now comes up, Bind works well, Apache
works well.

Now when I type in the IP address in my browser the website comes up by
default...

How do I set the IP to point to another page?

Thanks again,

Yves Arsenault
Carrefour Infotech
5,promenade Acadian
Charlottetown, IPE
C1C 1M2
[EMAIL PROTECTED]
(902)368-1895 ext.242
ICQ #117650823


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Apache question

2003-06-09 Thread Steven Broos
What exactly do you want to come up, when you type in what IP ?
Maybe you can give an example or so ?

Steven

On Mon, 2003-06-09 at 20:27, Yves Arsenault wrote:
 Hello again,
 
 I'm pleased to report that my site now comes up, Bind works well, Apache
 works well.
 
 Now when I type in the IP address in my browser the website comes up by
 default...
 
 How do I set the IP to point to another page?
 
 Thanks again,
 
 Yves Arsenault
 Carrefour Infotech
 5,promenade Acadian
 Charlottetown, IPE
 C1C 1M2
 [EMAIL PROTECTED]
 (902)368-1895 ext.242
 ICQ #117650823
 
 
 
 __
 
 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [newbie] apache question .htaccess file and httpd.conf settings relating to it.

2001-09-16 Thread Franki

also, do you have the paths to the document root set correctly in
httpd.conf?

if you are trying to serve pages from the servers root directory, it will
give that result...

if its not set to serve root...

take a look in /etc/httpd/conf/httpd.conf

look in the directory listings...

ie Directory

inside them (particularly your html directory), you should have a line like
this:
AllowOverride AuthConfig Limit Options

That will allow your web server to accept htaccess files...

in your .htaccess file, (which goes in the web diectory you want to protect)

you should have something like this:

Options All
AuthType Basic
AuthName Protected Access
AuthUserFile /var/www/html/somedirectory/somefile.access
Limit GET
require valid_user
/Limit

That will do it,,,

then to add users you do this:

htpasswd somefile.access your_user_name
answer the questions it asks...

Thats it,, you have just protected a directory on your web server via
password..

I use this all the time on many directorys on my servers...


rgds

Frank








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dave Sherman
Sent: Sunday, 16 September 2001 2:33 AM
To: Mandrake-newbie
Subject: Re: [newbie] apache question


On Sat, 2001-09-15 at 12:02, Jon Doe wrote:
 Ok, at one time I had apache up and running and serving pages. For some
 reason now I always just get a:

 Forbidden
 You don't have permission to access /index.htm on this server.
 Apache-AdvancedExtranetServer/1.3.19 Server at 127.0.0.1 Port 443

 error. What am I doing wrong? I want to setup SSL and have usernames and
 passwords for each user. The users are not on my network they will use
 Internet access to get the pages. Any help?

Do you already have SSL installed, and have you generated a digital
certificate? You won't get anywhere without that.

Dave




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] apache question .htaccess file and httpd.conf settings relating to it.

2001-09-16 Thread Michael D. Viron

At 05:03 PM 09/16/2001 +0800, Franki wrote:
also, do you have the paths to the document root set correctly in
httpd.conf?

if you are trying to serve pages from the servers root directory, it will
give that result...

if its not set to serve root...

take a look in /etc/httpd/conf/httpd.conf

look in the directory listings...

ie Directory

inside them (particularly your html directory), you should have a line like
this:
AllowOverride AuthConfig Limit Options

That will allow your web server to accept htaccess files...

in your .htaccess file, (which goes in the web diectory you want to protect)

you should have something like this:

Options All
AuthType Basic
AuthName Protected Access
AuthUserFile /var/www/html/somedirectory/somefile.access
Limit GET
require valid_user
/Limit
Actually, the user file should be somewhere above the html root
directory--otherwise a direct request could be made for it if someone knows
what the filename is, and therefore would then be able to get a list of
valid users.

Michael
--
Michael Viron
Registered Linux User #81978
Senior Systems  Administration Consultant
Web Spinners, University of West Florida



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] apache question .htaccess file and httpd.conf settings relating to it.

2001-09-16 Thread Franki

yup, thats fair enough, I use a very custom file name and I don't allow
indexing..., so I don't really think I have to much to worry about..

but yes, this is true, the user file really shouldn't be in the html area...


rgds

Frank

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael D. Viron
Sent: Sunday, 16 September 2001 10:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [newbie] apache question .htaccess file and httpd.conf
settings relating to it.


At 05:03 PM 09/16/2001 +0800, Franki wrote:
also, do you have the paths to the document root set correctly in
httpd.conf?

if you are trying to serve pages from the servers root directory, it will
give that result...

if its not set to serve root...

take a look in /etc/httpd/conf/httpd.conf

look in the directory listings...

ie Directory

inside them (particularly your html directory), you should have a line like
this:
AllowOverride AuthConfig Limit Options

That will allow your web server to accept htaccess files...

in your .htaccess file, (which goes in the web diectory you want to
protect)

you should have something like this:

Options All
AuthType Basic
AuthName Protected Access
AuthUserFile /var/www/html/somedirectory/somefile.access
Limit GET
require valid_user
/Limit
Actually, the user file should be somewhere above the html root
directory--otherwise a direct request could be made for it if someone knows
what the filename is, and therefore would then be able to get a list of
valid users.

Michael
--
Michael Viron
Registered Linux User #81978
Senior Systems  Administration Consultant
Web Spinners, University of West Florida





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] apache question

2001-09-15 Thread Jon Doe

Ok, at one time I had apache up and running and serving pages. For some 
reason now I always just get a:

Forbidden
You don't have permission to access /index.htm on this server.
Apache-AdvancedExtranetServer/1.3.19 Server at 127.0.0.1 Port 443

error. What am I doing wrong? I want to setup SSL and have usernames and 
passwords for each user. The users are not on my network they will use 
Internet access to get the pages. Any help?




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] apache question

2001-09-15 Thread Dave Sherman

On Sat, 2001-09-15 at 12:02, Jon Doe wrote:
 Ok, at one time I had apache up and running and serving pages. For some 
 reason now I always just get a:
 
 Forbidden
 You don't have permission to access /index.htm on this server.
 Apache-AdvancedExtranetServer/1.3.19 Server at 127.0.0.1 Port 443
 
 error. What am I doing wrong? I want to setup SSL and have usernames and 
 passwords for each user. The users are not on my network they will use 
 Internet access to get the pages. Any help?

Do you already have SSL installed, and have you generated a digital
certificate? You won't get anywhere without that.

Dave

 PGP signature


Re: [newbie] apache question

2001-09-15 Thread Matt Greer

On Saturday 15 September 2001 13:33, you wrote:
 On Sat, 2001-09-15 at 12:02, Jon Doe wrote:
  Ok, at one time I had apache up and running and serving pages. For some
  reason now I always just get a:
 
  Forbidden
  You don't have permission to access /index.htm on this server.
  Apache-AdvancedExtranetServer/1.3.19 Server at 127.0.0.1 Port 443
 
  error. What am I doing wrong?


The apache faq addresses this problem over at www.apache.org.  I had the same 
problem but unfortunately the faq's solution didn't work for me. If I try to 
move my html root out of /var/www/html (updating the configs to reflect the 
change) I get that error, but it's fine if I move it back. I haven't figured 
out the cause despite lots of reading.


Matt



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] apache question

2001-09-15 Thread Hal Wigoda


did you restart apache after moving the home page??

 
 This is a multi-part message in MIME format...
 
 =_1000579545-7607-3901
 Content-Type: text/plain; charset=iso-8859-1
 Content-Transfer-Encoding: 8bit
 
 On Saturday 15 September 2001 13:33, you wrote:
  On Sat, 2001-09-15 at 12:02, Jon Doe wrote:
   Ok, at one time I had apache up and running and serving pages. For some
   reason now I always just get a:
  
   Forbidden
   You don't have permission to access /index.htm on this server.
   Apache-AdvancedExtranetServer/1.3.19 Server at 127.0.0.1 Port 443
  
   error. What am I doing wrong?
 
 
 The apache faq addresses this problem over at www.apache.org.  I had the same 
 problem but unfortunately the faq's solution didn't work for me. If I try to 
 move my html root out of /var/www/html (updating the configs to reflect the 
 change) I get that error, but it's fine if I move it back. I haven't figured 
 out the cause despite lots of reading.
 
 
 Matt
 
 
 =_1000579545-7607-3901
 Content-Type: text/plain; name=message.footer
 Content-Disposition: inline; filename=message.footer
 Content-Transfer-Encoding: 8bit
 
 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com
 
 =_1000579545-7607-3901--
 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] apache question

2001-09-15 Thread Franki

have you enabled htaccess (override) files? if so, you need to configure the
file properly...

you seem to have just denied access, it should be asking for a password...

if you can't figure it out, I will look up my settings for you tomorrow.

rgds

Frank

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jon Doe
Sent: Sunday, 16 September 2001 1:02 AM
To: [EMAIL PROTECTED]
Subject: [newbie] apache question


Ok, at one time I had apache up and running and serving pages. For some
reason now I always just get a:

Forbidden
You don't have permission to access /index.htm on this server.
Apache-AdvancedExtranetServer/1.3.19 Server at 127.0.0.1 Port 443

error. What am I doing wrong? I want to setup SSL and have usernames and
passwords for each user. The users are not on my network they will use
Internet access to get the pages. Any help?






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Apache Question

2001-08-01 Thread John Rigby


Ha folks,
Yahoo! The expression not bizness.  Something on MY setup is 
working!!  :-)
I can see it! I can see it! 


On Tue, 31 Jul 2001 00:31, Jan manipulated electrons to produce:


 If you installed Apache when you installed Mandrake 8 (you didn't
 mention OS distros or versions) it should have created the file
 index.html in the document root /var/www/html/

 You should be able to view this by typing:
 http://localhost/


-- 
Cheers,

John
http://counter.li.org GO HERE IF YOU SUPPORT LINUX! 

Fablor is now Webhosting?? What on earth for??  
Info here: [EMAIL PROTECTED] 
(it's only an Autoresponder)  :-)




Re: [newbie] Apache Question

2001-07-30 Thread Jan Wilson

* Tom Malone [EMAIL PROTECTED] [010730 06:12]:
 I am not sure if this question is more appropriate for this list or maybe the 
 PHP list, but I'll post it here just in case - let me know if I am out of 
 line... =)
 I have Apache installed with mod_php - I am just wondering:
 Is the standard Apaceh directory structure (i.e.: htdocs, or public_html) 
 automatically created when Apache is installed, or do I have to create it 
 myself?  If i have to create it myself, how do I make it the default 
 directory so that when I go to localhost/ in my browser, it will load my 
 index page? Thanks - sorry if this is OT...

If you installed Apache when you installed Mandrake 8 (you didn't
mention OS distros or versions) it should have created the file
index.html in the document root /var/www/html/

You should be able to view this by typing:
http://localhost/

into your browser address bar.  If not, there are a bunch of things
that could be wrong.  If you can see the Apache/Mandrake welcome, you
can rename that file and create a new index.html and you are off and
running with your own Intranet or (if you are set to allow access to
the world) Internet website.  If you get an error message, let us know
what it says.

-- 
Jan Wilson, SysAdmin _/*];  [EMAIL PROTECTED]
Corozal Junior College   |  |:'  corozal.com corozal.bz
Corozal Town, Belize |  /'  chetumal.com  linux.bz
Reg. Linux user #151611  |_/   Network, SQL, Perl, HTML





[newbie] Apache question?

2000-11-10 Thread Leo Fox



Basically the problem is whenI go to a subdirectory on 
my website(through a browser) unless I put a / on the end it will not load and 
say page cannot be found, how can I fix this?