About Apache

2005-04-13 Thread Kevin Pang
I installed Awstat, the log report url is something like
http://www.mydomain.com/awstats/awstats.pl, I added password protection for
the directory /awstats, everything works fine. But I found someone accessed
the url http://www.mydomain.com/cgi-bin/awstats.pl, it's supposed to be a
404 error, but it is redirected to
http://www.mydomain.com/awstats/awstats.pl . My question is why the url
http://www.mydomain.com/cgi-bin/awstats.pl is working, any other options to
make it work besides rewrite, alias and link. Thanks!

Here is all related lines in httpd.conf:
---
ScriptAlias /cgi-bin/ /usr/local/www/cgi-bin/

ScriptAlias /awstats/ /usr/local/etc/awstats/wwwroot/cgi-bin/
Directory /usr/local/etc/awstats/wwwroot
Options None
AllowOverride authconfig
Order allow,deny
Allow from All
/Directory
---
Output of ll /usr/local/www/cgi-bin/,  nothing is related to /awstats/
-rw-r--r--  1 root  wheel0 Nov  3 17:24
EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
-rw-r--r--  1 root  wheel  274 Nov  3 17:24 printenv
-rw-r--r--  1 root  wheel  757 Nov  3 17:24 test-cgi


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Partition Magic BSD partitions (was: something about Apache)

2004-08-01 Thread Giorgos Keramidas
On 2004-08-01 04:18, DK [EMAIL PROTECTED] wrote:
 Floppy  CD mount OK now, however even though the floppy mounts OK,
 when I mount the floppy, I get:

 127# mount -v -t msdos /dev/fd0 /mnt
 /dev/fd0 on /mnt (msdos, local, reads: sync 2 async 0)

 floppy: mount -v -t msdos /dev/fd0c /mnt
 CDROM: mount -t cd9660 /dev/acd0c /cdrom

 However, I can't seem to unmount them. I get Command not found.
 127# unmount /cdrom
 unmount: Command not found.

There is no unmount command.  Try umount without the extra 'n'.

   When I run partition magic in Win2000, its says that I have a BAD
   partition. Doing some searching, found that BSD messes up something
   with the sizes of the geometry of the selected partitions(slices) -
   still don't know how to fix this ???
 
  Don't fix anything.  It's more likely that just Partition Magic that
  is brain-damaged and cannot read the BSD partition properly.

 No, partition magic can read the BSD partition correctly. PM is saying
 the whole primary parition (both Windows 2000 + FBSD) is BAD (nothing
 to do with surface errors)

I don't know anything about your partition table so I can't say for sure
if PartitionMagic has gone nuts or not.  I do remember it had issues
with BSD slices, but that was about a year ago.  I don't use PM so
knowing if these issues are resolved now is impossible for me.

 I can't remember where I read it (BSD site or book, will look later)
 but when you make the slices, the sizes must add up to a certain
 divisable number, otherwise part of the partition (small number like
 1024kb) will be unusable.  Thats why PM is saying that the whole
 partition is BAD. But I don't know how to fix this ???

Use the fdisk command on your disk to print the partition table and
show me the output.  You should see something like this:

# fdisk /dev/ad0
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=87233 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=87233 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 1012032 (494 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 62/ head 254/ sector 63
The data for partition 2 is:
sysid 6 (0x06),(Primary 'big' DOS (= 32MB))
start 1012095, size 2040255 (996 Meg), flag 0
beg: cyl 63/ head 0/ sector 1;
end: cyl 189/ head 254/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 3052350, size 84871395 (41441 Meg), flag 0
beg: cyl 190/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
UNUSED

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Quick question about apache on freebsd4.9

2004-05-06 Thread Jeronimo Romero


Installed apache on freebsd 4.9. Installed several virtual hosts with
ssl support.
When I browse the one of them with internet explorer I have to click
yes over 30 times in
The browser security certificate. Anyone have any ideas why this would
be happening???



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Quick question about apache on freebsd4.9

2004-05-06 Thread Chad Leigh -- Shire.Net LLC
On May 6, 2004, at 3:57 PM, Jeronimo Romero wrote:

Installed apache on freebsd 4.9. Installed several virtual hosts with
ssl support.
When I browse the one of them with internet explorer I have to click
yes over 30 times in
The browser security certificate. Anyone have any ideas why this would
be happening???
SSL is IP based.  You can only have one SSL certificate per IP address 
so if you have multiple virtual hosts on one IP, and they are in 
different domain names, your cert will not match the site name for most 
of your hosts and hence you get the dialogs from IE

Chad
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Question about Apache with ssl.

2002-12-06 Thread Mark-Nathaniel Weisman
I've replaced the original httpd executable with a new improved
apachectl, and of course need the startssl to fire up my ssl installed
Web Server. When the web server fires up, you need to enter the pass
phrase for the security. How can I automate this? Which file boots the
web server? And where do I add the security phrase? Any help?

His Faithful Servant,
Mark

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Question about Apache with ssl.

2002-12-06 Thread Andrew Prewett
Today Mark-Nathaniel Weisman wrote:

 I've replaced the original httpd executable with a new improved
 apachectl,

apachectl is only a wrapper script to start, stop, restart apache (httpd)...

 and of course need the startssl to fire up my ssl installed
 Web Server. When the web server fires up, you need to enter the pass
 phrase for the security. How can I automate this?

You mean, you want a decrypted key?

prompt# openssl rsa -in encrypted.key -out decrypted.key
[you get a password prompt here]

prompt# chown root:wheel decrypted.key
prompt# chmod 0400 decrypted.key

(apache|ssl).conf file:
SSLCertificateKeyFile /path/to/decrypted.key

You should read the apache-ssl FAQ.

 Which file boots the web server?

 In this case the web server executable is httpd. You can start it
directly and with a wrapper script, like apachectl or (if you have
installed apache with the ports/packages system) with
/usr/local/etc/rc.d/httpd.sh (IIRC).

 And where do I add the security phrase? Any help?

 If you use the decrypted version of the key, then you'll not be prompted
again at apache startup.

-andrew


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Newbie question about apache

2002-07-25 Thread Erik Mattsson

Hi

I've just installed the apache2 from /usr/ports/www, and I want this to run
everytime when I reboot the machine. How do I do it?

Ive also installed tomcat4.0 and want it to run at boot time as well, BUT
how do i force it to run as the www user?

//erik
-
Erik Mattsson

imBridge AB
Vasaplatsen 8
SE-411 34 Göteborg

Phone: +46-31-138310
Mobile: +46-733-174116
www.imbridge.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Newbie question about apache

2002-07-25 Thread Henrik Hudson

Userland startup scripts (ie: the ones created by the admin) go in:
/usr/local/etc/rc.d

Create a shell script, for this example: apache.sh  and then chmod 755 it.

Note: The files HAVE to be called something.sh and they HAVE to be chmod 755   
otherwise they don't work.

Note: Use the apachectl script to start and stop apache. Just had a thought.. 
I haven't used Apache 2 yet..so don't know if this will work..but I do the 
below for Apache 1.3 ... so it should be something similar

In the file do something like this:
START SCRIPT EXAMPLE

#!/bin/sh
#Script for starting and stapping apache
#Grab our command
mode=$1# start or stop

case $mode in  
  'start')
# Start daemon
/path/to/apachectlscript/apachectl start  
;;  

  'stop')
#Stop daemon
/path/to/apachectlscript/apachectl stop

;;   

  *)

# usage
echo usage: $0 start|stop
exit 1
;;
esac


END SCRIPT EXAMPLE

Hope that helps :)

Henrik

On Thursday 25 July 2002 03:27, Erik Mattsson wrote:
 Hi

 I've just installed the apache2 from /usr/ports/www, and I want this to run
 everytime when I reboot the machine. How do I do it?

 Ive also installed tomcat4.0 and want it to run at boot time as well, BUT
 how do i force it to run as the www user?

 //erik
 -
 Erik Mattsson

 imBridge AB
 Vasaplatsen 8
 SE-411 34 Göteborg

 Phone: +46-31-138310
 Mobile: +46-733-174116
 www.imbridge.com


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 

Henrik Hudson
[EMAIL PROTECTED]

Note:  Beware of Dragons - Thou art crunchy and taste good with ketchup.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Newbie question about apache

2002-07-25 Thread Roman Neuhauser

 From: Erik Mattsson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Newbie question about apache
 Date: Thu, 25 Jul 2002 10:27:32 +0200
 
 Hi
 
 I've just installed the apache2 from /usr/ports/www, and I want this
 to run everytime when I reboot the machine. How do I do it?

i don't know about apache2, but daemons installed from ports put
their startup scripts in /usr/local/etc/rc.d/. take a look. 
second guess would be /usr/local/share/examples/.
 
 Ive also installed tomcat4.0 and want it to run at boot time as well,
 BUT how do i force it to run as the www user?

i don't know tomcat, but wouldn't that be similar?

-- 
FreeBSD 4.6-STABLE
10:39AM up 8 days, 20:58, 11 users, load averages: 0.00, 0.00, 0.00

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Newbie question about apache

2002-07-25 Thread Mike Woods

I've just installed the apache2 from /usr/ports/www, and I want this to run
everytime when I reboot the machine. How do I do it?

It sets itself up to launch at startup automaticly, you shouldnt have to do
a thing.

--
Mike Woods
WoA SE Webmonkey  General Dogsbody
Amiga North Thames Webmaster  Games Co- ordinator
---
World Of Amiga SE - http://www.worldofamiga.com
Amiga North Thames - Http://www.AmigaNorthThames.co.uk
HomePage - Http://www.planetheck.co.uk/~damnation
Micronik Busboards Support - Http://www.microniksupport.n3.net
ICQ uin - 86410172
MSN Addy - [EMAIL PROTECTED]
---

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Newbie question about apache

2002-07-25 Thread Erik Mattsson

Ah, i noticed why the httpd didnt start after bootup.
It was a bad conf file.

SOrry guys for a completly useless mail

//erik
- Original Message - 
From: Mike Woods [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: FreeBSD Questions [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 12:31 PM
Subject: Re: Newbie question about apache


 I've just installed the apache2 from /usr/ports/www, and I want this to run
 everytime when I reboot the machine. How do I do it?
 
 It sets itself up to launch at startup automaticly, you shouldnt have to do
 a thing.
 
 --
 Mike Woods
 WoA SE Webmonkey  General Dogsbody
 Amiga North Thames Webmaster  Games Co- ordinator
 ---
 World Of Amiga SE - http://www.worldofamiga.com
 Amiga North Thames - Http://www.AmigaNorthThames.co.uk
 HomePage - Http://www.planetheck.co.uk/~damnation
 Micronik Busboards Support - Http://www.microniksupport.n3.net
 ICQ uin - 86410172
 MSN Addy - [EMAIL PROTECTED]
 ---
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message