You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fajar Priyanto <fa...@arinet.org> on 2004/01/10 05:16:06 UTC

[users@httpd] Pls help: double slash '//' behind the domain name

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all,
Pls help me. I have this php website that some of its menues behave strangely.
Actually it is a modified form of PHPNUKE. When clicked, some of its menues 
will make the URL on the browser address bar :
http://www.myself.com//modules.php?.....
instead of (notice the double slash):
http://www.myself.com/modules.php?.....

Is it php related or Apache? Because when I tried it on my friend's web 
server, the menues run OK.
I'm using Mandrake 9.1:
Server Version: Apache-AdvancedExtranetServer/2.0.44 (Mandrake
          Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44
          OpenSSL/0.9.7a PHP/4.3.1

   Server Built: Mar 4 2003 21:21:03
Thanks.

- -- 
Fajar http://linux.arinet.org
Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux
11:09:45 up 4:05, 9 users, load average: 0.01, 0.07, 0.12
Quote of the day:
NT (as in Windows NT) is short for "Not Trustworthy".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE//3yJMai9kCFqACoRAkLHAKClQWgcG55hE2c3GJwm4D17OODJYwCfbM8j
s1mvFyLsT0sBM220ZMBzipI=
=vc1R
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Sean Woodlock <ad...@ciscohire.com>.
Thanks for reply Robert

The new version of perl 5.8.0, however the old version is still installed
but as seen below the OS is definitely using 5.8.0.  I take your advice and
post again in the perl/mailing .


Thanks again
Sean

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi
    uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15
06:41:59 edt 2002 i686 i686 i386 gnulinux '




config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localho
st -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat,
Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix
=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefi
les -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_sysl
og -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversionon
ly -Dpager=/usr/bin/less -isr'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags
='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -march=i386 -mcpu=i686',




cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdb
m'
    ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.2.92'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Sep  1 2002 23:56:49
  @INC:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    .
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi
    uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15
06:41:59 edt 2002 i686 i686 i386 gnulinux '




config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localho
st -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat,
Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix
=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefi
les -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_sysl
og -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversionon
ly -Dpager=/usr/bin/less -isr'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags
='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -march=i386 -mcpu=i686',




cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdb
m'
    ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.2.92'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Sep  1 2002 23:56:49
  @INC:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    .
HOSTNAME=dns

----- Original Message ----- 
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Thursday, January 15, 2004 9:23 AM
Subject: Re: [users@httpd] Pls help: double slash '//' behind the domain
name


> Ok, Sean, I'll give it a try, even though I have no idea what it has to do
> with the original subject. See below...
>
> Sean Woodlock wrote:
> > The apache is still the old version 1.3.1.2  from previous installation.
>
> You shoud, should, and SHOULD upgrade. That is, unless you want to get
> "hacked" again.
>
> > In order to give the appliance it functionality to maintain through the
> web
> > gui there all loads of script written in CGI and perl.  As stated  the
> previous
> > perl version was 5.000503.
>
> Is that also the current version? If not, which version is?
>
> > All the other scripts seems to work and will compile without any issues,
>
> Hmm, doesn't that contradict the following:
>
> > However when i try to start the http-admin process from /etc.init.d i
get
> > this
> > ./httpd-admin start: httpd-admin could not be started
> > [Tue Jan 13 13:48:03 2004] [error] Can't locate lib.pm in @INC (@INC
> > contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
> > /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005
.
> > /usr/ins/intel/apache/ /usr/ins/intel/apache/lib/perl) at
> > /usr/ins/intel/gui/perllib/Authenticate.pm line 36.
> > BEGIN failed--compilation aborted at
> > /usr/ins/intel/gui/perllib/Authenticate.pm line 36.
>
> It is supposed to be this line that is causing it?
>
>     use Apache::Constants qw(:common);
>
> I am by no means a perl admin guru; I don't know why this happens. For
some
> reason it cannot find "lib.pm" in its paths. Could be a bad install, wrong
> paths or something else.
>
> > basicially i am really asling if anyone no's how i can solve this
problem.
>
> You would be better off starting a new thread, so you might catch the eye
of
> some perl experts. Better, this has probably nothing to do with Apache,
but
> is a perl installation issue; you are more likely to get valuable answers
> from a Perl support forum/mailing list.
>
> > Also do you no of a way toget apache to run you what modules it
> > has loaded at runtime
>
> You might be able to get some info out of mod_info, although it was a long
> time since I used it, so I am not sure:
>     http://httpd.apache.org/docs-2.0/mod/mod_info.html
>
> Regards,
> Robert Andersson
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 15 Jan 2004, David Blomstrom wrote:
> But I don't want to move all my websites into the
> htdocs folder. I'd rather leave right where they are -
> C:/sites - but be able to preview them by typing in
> http://localhost/geobop, http://localhost/geoworld,
> etc.

> So is that a virtual host function, or an alias
> function?

Alias.

Again, read the doc I pointed you to.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Matthew Shannon <ma...@paycom.net> wrote:
> This is an alias function. Virtual hosting would
> involve different
> servernames as in http://localhost1, . . .
> 
> Alias /geoworld c:/sites/geoworld
> Alias /othersite c:/sites othersite
> 
> -m
 
OK, thanks - I just wanted to make sure I'm on the
right track.

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Matthew Shannon <ma...@paycom.net>.
This is an alias function. Virtual hosting would involve different
servernames as in http://localhost1, http://localhost2, etc., each with
it's own document root ( c:/sites/localhost1, c:/sites/localhost2 ). If
you would like to pull up different sites under one servername, you need
to discriminate via directory structure, either under the one doc root
or by using the alias as was said before;

Alias /geoworld c:/sites/geoworld
Alias /othersite c:/sites othersite

-m

On Thu, 2004-01-15 at 09:34, David Blomstrom wrote:
> --- Joshua Slive <jo...@slive.ca> wrote:
> 
> > Most likely what you want is simply an Alias, as in
> > 
> > Alias /geoworld c:/sites/geoworld
> 
> * * * * * * * * * *
> 
> This is what I'm trying to do...
> 
> All of my websites are in the following directory:
> 
> C:/sites
> 
> I recently installed Apache and was trying to learn
> how to preview my websites in it. Someone told me to
> just paste my sites into apache/htdocs. (Actually,
> it's xampp/htdocs in my system.)
> 
> It worked beautifully - I type in
> http://localhost/geobop/ and I can view my site.
> 
> But I don't want to move all my websites into the
> htdocs folder. I'd rather leave right where they are -
> C:/sites - but be able to preview them by typing in
> http://localhost/geobop, http://localhost/geoworld,
> etc.
> 
> I can view them, by typing in something messy, like
> file///c:sites, or whateve. But if I open a page in
> Dreamweaver, then click "preview," it doesn't work
> (except for the site in the htdocs folder).
> 
> So is that a virtual host function, or an alias
> function?
> 
> Thanks.
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Going Back to Square One

Posted by Robert Andersson <ro...@profundis.nu>.
David Blomstrom wrote:
> I just didn't know I had to reboot my computer after altering
> apache/conf/httpd.

You don't need to reboot. When you change Apache's configuration, you need
to instruct it to reread it. If you have Apache Service Monitor runing,
instruct it to restart Apache and you're done.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Going Back to Square One

Posted by David Blomstrom <da...@yahoo.com>.
Please disregard my first post. It turns out I was
doing it right after all; I just didn't know I had to
reboot my computer after altering apache/conf/httpd.

Whew!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Going Back to Square One

Posted by David Blomstrom <da...@yahoo.com>.
Can someone help me untie this knot?

Several days ago, I installed a preconfigured package
from "Apache Friends" (XAMPP) and began learning about
Apache, PHP and MySQL. The folder is installed at
C:/xampp/, with Apache at C:/xampp/apache/ and htdocs
at C:/xampp/htdocs/

The program is set up so that typing http://localhost/
into your browser brings up XAMPP's home page, which
includes test pages for Apache, PHP and MySQL.

One of my first challenges was to change localhost to
the folder with my Dreamweaver websites - C:/sites/  I
tried several methods, but I think the strategy that
finally worked was the tip I got from this list to
"change your document root to c:/sites instead of the
htdocs directory." I can't remember what file I did
that in, but I presume it was in conf/httpd. Anyway,
it worked beautifully.

To regain contact with XAMPP's home page (which is in
the htdocs folder), I simply made a copy of the htdocs
folder and pasted it into C:/sites/htdocs/. Then I
could view it at http://localhost/htdocs/xampp/, or
something like that.

Things fell apart when I was trying to learn MySQL,
specifically when I created a password for MySQL. I
decided to delete the entire XAMPP folder and
reinstall it (though I left the htdocs folder copy in
my sites folder).

Now I'm in limbo, with things working just partially.
I thought typing http://localhost/ into my browser
would bring up XAMPP's home page, but it brings up the
home page in my C:/sites/ folder. However, I can't
preview any other Dreamweaver websites, such as
http:/localhost/geobop/  If I navigate to XAMPP's home
page - either the original, or the copy I placed into
the C:/sites/htdocs/ folder - and double click on it,
my browser opens at one of the following URL's:

file:///C:/xampp/htdocs/index.html
file:///C:/sites/htdocs/index.html

Both pages display, but the test pages don't work.

Although this is confusing to me, I think the problem
(and the solution) is fairly simple - I'm must not
sure what it is. Since my problems began when I
created a MySQL username and password, I wanted to ask
if that could screw up Apache somehow. Also, shouldn't
that password be eliminated when I deleted the XAMPP
and MySQL folders? Or would it still be in my
computer, and I have to figure out how to delte it?

Again, my ultimate goal is to simply get Apache, PHP
and MySQL up and running at C:/xampp/ and preview my
websites at C:/sites/

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Getting Started With Virtual Hosts

Posted by Ben Yau <by...@cardcommerce.com>.
>
> C:/sites
>
> I recently installed Apache and was trying to learn
> how to preview my websites in it. Someone told me to
> just paste my sites into apache/htdocs. (Actually,
> it's xampp/htdocs in my system.)
>
> It worked beautifully - I type in
> http://localhost/geobop/ and I can view my site.
>

You could also just change your document root to  c:/sites instead of the
htdocs directory
Do you use the htdocs directory for anything else?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Joshua Slive <jo...@slive.ca> wrote:

> Most likely what you want is simply an Alias, as in
> 
> Alias /geoworld c:/sites/geoworld

* * * * * * * * * *

This is what I'm trying to do...

All of my websites are in the following directory:

C:/sites

I recently installed Apache and was trying to learn
how to preview my websites in it. Someone told me to
just paste my sites into apache/htdocs. (Actually,
it's xampp/htdocs in my system.)

It worked beautifully - I type in
http://localhost/geobop/ and I can view my site.

But I don't want to move all my websites into the
htdocs folder. I'd rather leave right where they are -
C:/sites - but be able to preview them by typing in
http://localhost/geobop, http://localhost/geoworld,
etc.

I can view them, by typing in something messy, like
file///c:sites, or whateve. But if I open a page in
Dreamweaver, then click "preview," it doesn't work
(except for the site in the htdocs folder).

So is that a virtual host function, or an alias
function?

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 15 Jan 2004, David Blomstrom wrote:

> --- Joshua Slive <jo...@slive.ca> wrote:
> >
> > The ServerName is what apache uses to choose the
> > site to serve.  It must
> > EXACTLY match what you type into the URL bar of your
> > web browser (which
> > must, in turn, be mapped to your webserver through
> > DNS or other means).
> >
> > Joshua.
>
> Hmmmmmm...
>
> To preview the website that's currently in my htdocs
> folder, I type in http://localhost/geobop/index.php
>
> Just to make sure I've got this right, does that make
> my server name
> "http://localhost/geobop/index.php" ?

Sorry, not THAT exact.  It meant exactly the hostname you type in the URL
bar.  But it seems there is some confusion about what you are trying to
accomplish...

> But after I get my virtual server set up, that will
> change to http://localhost/geoworld/index.php, right?
>
> Also, you wrote, "which must, in turn, be mapped to
> your webserver through DNS or other means."
>
> Is that something I have to do, or is automatically
> mapped by Apache or something else?

If you are accessing both "sites" under the hostname "localhost", then you
do not want to do virtual hosting.  Virtual hosting is for hosting
different hostnames on the same server.

Most likely what you want is simply an Alias, as in

Alias /geoworld c:/sites/geoworld

See:
http://httpd.apache.org/docs-2.0/urlmapping.html

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Joshua Slive <jo...@slive.ca> wrote:
> 
> The ServerName is what apache uses to choose the
> site to serve.  It must
> EXACTLY match what you type into the URL bar of your
> web browser (which
> must, in turn, be mapped to your webserver through
> DNS or other means).
> 
> Joshua.

Hmmmmmm...

To preview the website that's currently in my htdocs
folder, I type in http://localhost/geobop/index.php

Just to make sure I've got this right, does that make
my server name
"http://localhost/geobop/index.php" ?

To view a site in my C:/sites directory (where I want
all my websites to be), I type in
file:///C:/sites/geobop/index.php

But after I get my virtual server set up, that will
change to http://localhost/geoworld/index.php, right?

Also, you wrote, "which must, in turn, be mapped to
your webserver through DNS or other means."

Is that something I have to do, or is automatically
mapped by Apache or something else?

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 15 Jan 2004, David Blomstrom wrote:
> <VirtualHost *:80>
>   DocumentRoot C:/sites/geobop
>   ServerName geobop
> </VirtualHost>
>
> And can I just choose anything for a server name? Or
> would I just localhost as the servername for all the
> websites on my computer?

The ServerName is what apache uses to choose the site to serve.  It must
EXACTLY match what you type into the URL bar of your web browser (which
must, in turn, be mapped to your webserver through DNS or other means).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Yakov Lerner <ya...@kavado.com> wrote:

> I think you need NameVirtualHost directive.
> The nice tutorial on VirtualHosts is at:
> 
>
http://www.onlamp.com/pub/a/apache/2004/01/08/apacheckbk.html
> 
> Yakov

* * * * * * * * * *

Thanks for the tip. He lists this is an example:

<VirtualHost *:80>
  DocumentRoot /home/bob/www
  ServerName bob.veggie.com
</VirtualHost>

If I was going to apply that to a site on a computer,
like C:/sites/geobop, how would I write it - like
this?

<VirtualHost *:80>
  DocumentRoot C:/sites/geobop
  ServerName geobop
</VirtualHost>
 
And can I just choose anything for a server name? Or
would I just localhost as the servername for all the
websites on my computer?


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Yakov Lerner <ya...@kavado.com>.
David Blomstrom wrote:
> I'm just starting to learn about virtual hosting and
> would like to ask a few questions. It looks like it
> might be pretty simple, but I'd like to make sure I'm
> pointed in the right direction.

I think you need NameVirtualHost directive.
The nice tutorial on VirtualHosts is at:

http://www.onlamp.com/pub/a/apache/2004/01/08/apacheckbk.html

Yakov

> 
> I'm using Dreamweaver on a Windows XP Pro platform,
> and here are some relevant paths:
> 
> C:/xampp/apache/
> C:/xampp/apache/conf/
> C:/xampp/htdocs/
> C:/sites/
> 
> For example, here are where two of my websites reside:
> 
> C:/sites/geobop/
> C:/sites/geoworld/
> 
> Please note that I am NOT planning on hosting online
> websites; I merely test my websites on my computer
> before I publish them online to my ISP.
> 
> I glanced at a couple online tutorials and
> Apache.org's instructions at
> http://httpd.apache.org/docs-2.0/vhosts/examples.html
> 
> It appears to me that I want to set up a NAME-BASED
> system.
> 
> Apache.org's server configuration instructions have
> apparently already been set up in the httpd.conf file:
> 
> #<VirtualHost *>
> #    ServerAdmin webmaster@dummy-host.example.com
> #    DocumentRoot /www/docs/dummy-host.example.com
> #    ServerName dummy-host.example.com
> #    ErrorLog logs/dummy-host.example.com-error_log
> #    CustomLog logs/dummy-host.example.com-access_log
> common
> #</VirtualHost>
> 
> Below is my first guess towards applying this to two
> of my websites, C:/sites/geobop/ and
> C:/sites/geoworld/
> 
> #<VirtualHost *>
> #    ServerAdmin [My e-mail address]
> #    DocumentRoot C:/sites/geobop
> #    ServerName geobop
> #    ErrorLog logs/C:/sites/geobop-error_log
> #    CustomLog logs/C:/sites/geobop-access_log common
> #</VirtualHost>
> 
> #<VirtualHost *>
> #    ServerAdmin [My e-mail address]
> #    DocumentRoot C:/sites/geoworld
> #    ServerName geoworld
> #    ErrorLog logs/C:/sites/geoworld-error_log
> #    CustomLog logs/C:/sites/geoworld-access_log
> common
> #</VirtualHost>
> 
> Am I on the right track? And am I also correct in
> guessing that I don't need error logs or custom logs,
> as long I'm only hosting websites on my own computer?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Ben Yau <by...@cardcommerce.com> wrote:

> I'm just curious, but why do you need to set up
> virtual hosting at all.  I
> was reading some of the other thread messages and
> your responses.  It
> doesn't seem like you need it.  You just need to set
> up apache and then
> access it like
> http://localhost/geobop
> http://localhost/geoworld
> http://localhost/[someothersite]
> 
> In these examples, locahost is your one and only
> servername.  YOu set the
> DocumentRoot to be c:/sites.

Aha! I looked in the Apache/conf/httpd file and found
this:

DocumentRoot "C:/xampp/htdocs"

So I could fix everything if I just changed it to
C:/sites ? I could then view my hosts with URLs like
http://localhost/geobop/index.php and
http://locahost/geoworld/index.php, right?


You could also just change your document root to 
c:/sites instead of 
the
htdocs directory
Do you use the htdocs directory for anything else?


There is one catch. I'm using a really nice
preconfigured package that includes Apache, PHP, MySQL
and several other programs. After you install it, you
can access the index page, which is linked to a series
of pages that more or less confirm that everything's
working.

I may be able to part with it eventually, but right
now it's a very convenient crutch, as I'm just
beginning to learn about this stuff. So it looks like
I have the following choices:

1) Leave DocumentRoot "C:/xampp/htdocs" as it is and
set up aliases for my websites in C:/sites.

2) Change it to DocumentRoot "C:/sites" and set up
aliases for the webpages in C:/xampp/htdocs/

3) Change the document root to C:/sites, then figure
out a way to move all the webpages from
C:/xampp/htdocs/ into C:/sites


A couple other quick questions:

1. If I change my conf/httpd file, is it true that I
have to reboot my computer before the changes will
take effect? I think I read that in the documentation,
but I don't want to waste time rebooting my computer
every time I make a change if it isn't really
necessary.

2. Do you know if I can access a copy of the conf file
online? I think I might have messed mine up, as
something isn't working. I looked at
http://httpd.apache.org/docs-2.0/ but didn't see it
mentioned.

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Getting Started With Virtual Hosts

Posted by Ben Yau <by...@cardcommerce.com>.
> I'm just starting to learn about virtual hosting and
> would like to ask a few questions. It looks like it
> might be pretty simple, but I'd like to make sure I'm
> pointed in the right direction.
>
> I'm using Dreamweaver on a Windows XP Pro platform,
> and here are some relevant paths:
>
> C:/xampp/apache/
> C:/xampp/apache/conf/
> C:/xampp/htdocs/
> C:/sites/
>
> For example, here are where two of my websites reside:
>
> C:/sites/geobop/
> C:/sites/geoworld/
>
> Please note that I am NOT planning on hosting online
> websites; I merely test my websites on my computer
> before I publish them online to my ISP.
>
> I glanced at a couple online tutorials and
> Apache.org's instructions at
> http://httpd.apache.org/docs-2.0/vhosts/examples.html
>


I'm just curious, but why do you need to set up virtual hosting at all.  I
was reading some of the other thread messages and your responses.  It
doesn't seem like you need it.  You just need to set up apache and then
access it like
http://localhost/geobop
http://localhost/geoworld
http://localhost/[someothersite]

In these examples, locahost is your one and only servername.  YOu set the
DocumentRoot to be c:/sites.  Then geobop and geoworld are just
subdirctories within your one server.  You can preview all your sites you're
working on this way.  You don't need to set up virtual hosts to do that.
You would have to set it up if youwanted to view the sites using different
servernames like

http://geobop/
http://geoworld/
http://[someothersite]/

which from your responses to other posts doesn't seem to be what you're
going for.

Please correct me if I'm wrong.

Ben


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
I'm just starting to learn about virtual hosting and
would like to ask a few questions. It looks like it
might be pretty simple, but I'd like to make sure I'm
pointed in the right direction.

I'm using Dreamweaver on a Windows XP Pro platform,
and here are some relevant paths:

C:/xampp/apache/
C:/xampp/apache/conf/
C:/xampp/htdocs/
C:/sites/

For example, here are where two of my websites reside:

C:/sites/geobop/
C:/sites/geoworld/

Please note that I am NOT planning on hosting online
websites; I merely test my websites on my computer
before I publish them online to my ISP.

I glanced at a couple online tutorials and
Apache.org's instructions at
http://httpd.apache.org/docs-2.0/vhosts/examples.html

It appears to me that I want to set up a NAME-BASED
system.

Apache.org's server configuration instructions have
apparently already been set up in the httpd.conf file:

#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log
common
#</VirtualHost>

Below is my first guess towards applying this to two
of my websites, C:/sites/geobop/ and
C:/sites/geoworld/

#<VirtualHost *>
#    ServerAdmin [My e-mail address]
#    DocumentRoot C:/sites/geobop
#    ServerName geobop
#    ErrorLog logs/C:/sites/geobop-error_log
#    CustomLog logs/C:/sites/geobop-access_log common
#</VirtualHost>

#<VirtualHost *>
#    ServerAdmin [My e-mail address]
#    DocumentRoot C:/sites/geoworld
#    ServerName geoworld
#    ErrorLog logs/C:/sites/geoworld-error_log
#    CustomLog logs/C:/sites/geoworld-access_log
common
#</VirtualHost>

Am I on the right track? And am I also correct in
guessing that I don't need error logs or custom logs,
as long I'm only hosting websites on my own computer?

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Robert Andersson <ro...@profundis.nu>.
Ok, Sean, I'll give it a try, even though I have no idea what it has to do
with the original subject. See below...

Sean Woodlock wrote:
> The apache is still the old version 1.3.1.2  from previous installation.

You shoud, should, and SHOULD upgrade. That is, unless you want to get
"hacked" again.

> In order to give the appliance it functionality to maintain through the
web
> gui there all loads of script written in CGI and perl.  As stated  the
previous
> perl version was 5.000503.

Is that also the current version? If not, which version is?

> All the other scripts seems to work and will compile without any issues,

Hmm, doesn't that contradict the following:

> However when i try to start the http-admin process from /etc.init.d i get
> this
> ./httpd-admin start: httpd-admin could not be started
> [Tue Jan 13 13:48:03 2004] [error] Can't locate lib.pm in @INC (@INC
> contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
> /usr/ins/intel/apache/ /usr/ins/intel/apache/lib/perl) at
> /usr/ins/intel/gui/perllib/Authenticate.pm line 36.
> BEGIN failed--compilation aborted at
> /usr/ins/intel/gui/perllib/Authenticate.pm line 36.

It is supposed to be this line that is causing it?

    use Apache::Constants qw(:common);

I am by no means a perl admin guru; I don't know why this happens. For some
reason it cannot find "lib.pm" in its paths. Could be a bad install, wrong
paths or something else.

> basicially i am really asling if anyone no's how i can solve this problem.

You would be better off starting a new thread, so you might catch the eye of
some perl experts. Better, this has probably nothing to do with Apache, but
is a perl installation issue; you are more likely to get valuable answers
from a Perl support forum/mailing list.

> Also do you no of a way toget apache to run you what modules it
> has loaded at runtime

You might be able to get some info out of mod_info, although it was a long
time since I used it, so I am not sure:
    http://httpd.apache.org/docs-2.0/mod/mod_info.html

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Robert Andersson <ro...@profundis.nu>.
Sean Woodlock wrote:
> As stated before because I have been hacked 3 time with hacker getting
root
> access and screwing it right up I took upon myself to upgrade the base OS
> and packages to redhat 8.  The apache is still the old version 1.3.1.2
from
> previous installation.  In order to give the appliance it functionality to
> maintain through the web gui there all loads of script written in CGI and
> perl.  As stated  the previous perl version was 5.000503.

Hmm... this have *nothing* to do with "double slash '//' behind the domain
name" (subject), right? I'm getting a bit confused what we're discussing...

I'm a bit busy right now, so I'll have to (re)read this and come back to you
later.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Sean Woodlock <ad...@ciscohire.com>.
Hi Robert

Thanks for your reply.
Sa1120 is a web appliance server built HP,  Intel also have one called the
1020 which is the same as HP, and the most well know are sun Cobalt range.
HP released this model 2 years and have never released one update, which I
think is a total joke.  The server OS was based around a Redhat 6.2 server
installation, allot main packaged such as apache, sendmail and various other
have to rebuilt and packaged to included there patches etc.

As stated before because I have been hacked 3 time with hacker getting root
access and screwing it right up I took upon myself to upgrade the base OS
and packages to redhat 8.  The apache is still the old version 1.3.1.2  from
previous installation.  In order to give the appliance it functionality to
maintain through the web gui there all loads of script written in CGI and
perl.  As stated  the previous perl version was 5.000503.

All the other scripts seems to work and will compile without any issues,


However when i try to start the http-admin process from /etc.init.d i get
this
./httpd-admin start: httpd-admin could not be started
[Tue Jan 13 13:48:03 2004] [error] Can't locate lib.pm in @INC (@INC
contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
/usr/ins/intel/apache/ /usr/ins/intel/apache/lib/perl) at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.
BEGIN failed--compilation aborted at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.

Syntax error on line 948 of /usr/ins/intel/apache/conf/httpd.conf:
Can't locate lib.pm in @INC (@INC contains:
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
/usr/ins/intel/apache/ /usr/ins/intel/apache/lib/perl) at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.
BEGIN failed--compilation aborted at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.


here the script that is being called look for the  <<<<<< to see line 36 the
same for 948 in the httpd.conf



package AuthCustom;

############################################################################
###
#
#
# Filename: AuthCustom.pm
#
#
#
# Description: Contains script needed to provide custom authorization for
#
#              Apache.
#
#
#
############################################################################
###
############################################################################
###
#
#
#  Copyright © 2000 - 2001 Intel Corporation.
#
#  Intel Corporation All Rights Reserved.
#
#
#
#  The source code contained or described herein and all documents related
to #
#  the source code ("Material") are owned by Intel Corporation or its
#
#  suppliers or licensors.  Title to the Material remains with Intel
#
#  Corporation or its suppliers and licensors.  The Material contains trade
#
#  secrets and proprietary and confidential information of Intel or its
#
#  suppliers and licensors.  The Material is protected by worldwide
copyright #
#  and trade secret laws and treaty provisions.  No part of the Material may
#
#  be used, copied, reproduced, modified, published, uploaded, posted,
#
#  transmitted, distributed, or disclosed in any way without Intel's prior
#
#  express written permission.
#
#
#
#  No license under any patent, copyright, trade secret or other
intellectual #
#  property right is granted to or conferred upon you by disclosure or
#
#  delivery of the Materials, either expressly, by implication, inducement,
#
#  estoppel or otherwise. Any license under such intellectual property
rights #
#  must be express and approved by Intel in writing.
#
#
#
############################################################################
###

# Put the PERL library in the path.
use lib "/usr/ins/intel/gui/perllib";

<<<<<<<<<< line 36
use strict;
use Apache;
use Apache::Constants qw(:common); <<<<<< line 39
use vars qw(@ISA);
use AuthCookie;
use Password;

@ISA = qw(AuthCookie);

use vars qw($PRIV_NONE $PRIV_USER $PRIV_DOMAIN $PRIV_SERVER);
$PRIV_NONE   = 0;
$PRIV_USER   = 1;
$PRIV_DOMAIN = 2;
$PRIV_SERVER = 3;

sub authen_cred ($$\@) {
    my $self = shift;
    my $r = shift;
    my @creds = @_;

    join(":", @creds);
}

sub authen_ses_key ($$$) {
    my $self = shift;
    my $r = shift;
    my($user, $password) = split(/:/, shift, 2);

    # Get the authentication requirements (from Apache) in an array ref
    my $reqs_arr = $r->requires or return;

    my ($requirement, $args);
    foreach my $req (@$reqs_arr) {
      ($requirement, $args) = split /\s+/, $req->{requirement}, 2;
      $args = '' unless defined $args;
      last if ($requirement eq 'valid-user') or ($requirement eq
'domain-admin') or ($requirement eq 'server-admin');
    }

    if ($requirement eq 'valid-user') {
 $requirement = $PRIV_USER;
    }
    elsif ($requirement eq 'domain-admin') {
 $requirement = $PRIV_DOMAIN;
    }
    elsif ($requirement eq 'server-admin') {
 $requirement = $PRIV_SERVER;
    }

    my ($priv_level, @pwent);

    # If requirement is domain-admin or server-admin then check privilege
level
    if (($requirement eq $PRIV_DOMAIN) or ($requirement eq $PRIV_SERVER)) {
      @pwent = getpwnam($user);

      if ($pwent[3] == 10000) {
        # User is a Server Admin (gid is 10000)
        $priv_level = $PRIV_SERVER;
      }
      elsif ($pwent[3] == 10001) {
        # User is a Domain Admin...
        $priv_level = $PRIV_DOMAIN;
      }

    }
    # Otherwise assign a default privilege level
    else {
 $priv_level = $PRIV_USER;
    }

    if ($priv_level >= $requirement) {
      my $pwverify = Password->checkPassword($user, $password);
      if ($pwverify eq "VALID") {
  return $user;
      } else {
  return;
      }
    }
    else {
  return;
    }
}

1;


and this is
line 948 from httpd.conf from the other syntax error

PerlRequire /usr/ins/intel/gui/perllib/Authenticate.pm
<<<<<<<<<<<<948
PerlSetVar AuthenticatePath /
PerlSetVar AuthenticateLoginScript /login.cgi
PerlSetVar AuthCookieDebug 0



basicially i am really asling if anyone no's how i can solve this problem.
Sorry of the long post but it was relvant to give all the details.  I do
have the apache.spec file from the apache.src.rpm so could help created a
make from this is could complie the newer version and include all the
modules.   Also do you no of a way toget apache to run you what modules it
has loaded at runtime

Many Thanks for everyone help

Sean






----- Original Message ----- 
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Wednesday, January 14, 2004 9:23 AM
Subject: Re: [users@httpd] Pls help: double slash '//' behind the domain
name


> Sean Woodlock wrote:
> > Its not php.nuke, this script was written by hp to start the http-admin
> > process for the SA1120 web appliance.  They released this product over
> > 2 years ago and have never released an update.  After have been hacked
> > for the 3rd time I thought it was about time I had ago myself and tried
to
> > update the base OS while maintaining the built in functionality of the
web
> > appliance
>
> Ok. I am not familiar with that monster you're dealing with, so you'll
have
> to explain better what it is and what it does. What language? One or more
> files? Configuration files? I have no clue what you have, so I cannot be
of
> much help. My previous suggestion was a general.
>
> Did you say that this "package" run correctly on the other system, with
> *identical* code and configuration?
>
> Regards,
> Robert Andersson
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Robert Andersson <ro...@profundis.nu>.
Sean Woodlock wrote:
> Its not php.nuke, this script was written by hp to start the http-admin
> process for the SA1120 web appliance.  They released this product over
> 2 years ago and have never released an update.  After have been hacked
> for the 3rd time I thought it was about time I had ago myself and tried to
> update the base OS while maintaining the built in functionality of the web
> appliance

Ok. I am not familiar with that monster you're dealing with, so you'll have
to explain better what it is and what it does. What language? One or more
files? Configuration files? I have no clue what you have, so I cannot be of
much help. My previous suggestion was a general.

Did you say that this "package" run correctly on the other system, with
*identical* code and configuration?

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Sean Woodlock <ad...@ciscohire.com>.
Its not php.nuke, this script was written by hp to start the http-admin
process for the SA1120 web appliance.  They released this product over 2
years ago and have never released an update.  After have been hacked for the
3rd time I thought it was about time I had ago myself and tried to update
the base OS while maintaining the built in functionality of the web
appliance



Thanks

Sean.



----- Original Message ----- 
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Tuesday, January 13, 2004 3:30 PM
Subject: Re: [users@httpd] Pls help: double slash '//' behind the domain
name


> Sean Woodlock wrote:
> > Thanks Robet my perl not that great at the present its been a while,
>
> It was intended as PHP, but Perl looks the same. The point was that it is
> likely to create link by concatenating two "contant" strings.
>
> > any idea on a how i can fix it.
>
> Most packages of this kind has a configuration directive where you give
the
> base URL of the server, eg. "http://www.myself.com". Anyway, look for
> configuration directives that contains your domain name as well as
> "modules.php". If they end and begin with a slash, respectively, you got
> problem.
>
> I am not familiar with phpNuke, so I don't have a clue where to look. I
> suggest you find a phpNuke mailing-list, if you cannot figure it out.
>
> Regards,
> Robert Andersson
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Robert Andersson <ro...@profundis.nu>.
Sean Woodlock wrote:
> Thanks Robet my perl not that great at the present its been a while,

It was intended as PHP, but Perl looks the same. The point was that it is
likely to create link by concatenating two "contant" strings.

> any idea on a how i can fix it.

Most packages of this kind has a configuration directive where you give the
base URL of the server, eg. "http://www.myself.com". Anyway, look for
configuration directives that contains your domain name as well as
"modules.php". If they end and begin with a slash, respectively, you got
problem.

I am not familiar with phpNuke, so I don't have a clue where to look. I
suggest you find a phpNuke mailing-list, if you cannot figure it out.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Sean Woodlock <ad...@ciscohire.com>.
Thanks Robet my perl not that great at the present its been a while, any
idea on a how i can fix it.

Sean
----- Original Message ----- 
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Tuesday, January 13, 2004 3:18 PM
Subject: Re: [users@httpd] Pls help: double slash '//' behind the domain
name


> Fajar Priyanto wrote:
> > Pls help me. I have this php website that some of its menues behave
> strangely.
> > Actually it is a modified form of PHPNUKE. When clicked, some of its
> > menues will make the URL on the browser address bar :
> > http://www.myself.com//modules.php?.....
> > instead of (notice the double slash):
> > http://www.myself.com/modules.php?.....
>
> This seems rather like a misconfiguration of phpNuke (of which I am not
> familiar). It will probably use an expression like this to generate the
> links:
>     $link = $server_uri.$module_uri."?...";
>
> So, if $server_uri is "http://www.myself.com/" and $module_uri is
> "/modules.php", you will see this problem. See if you can find a
> configuration option that looks guilty.
>
> Regards,
> Robet Andersson
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Pls help: double slash '//' behind the domain name

Posted by Robert Andersson <ro...@profundis.nu>.
Fajar Priyanto wrote:
> Pls help me. I have this php website that some of its menues behave
strangely.
> Actually it is a modified form of PHPNUKE. When clicked, some of its
> menues will make the URL on the browser address bar :
> http://www.myself.com//modules.php?.....
> instead of (notice the double slash):
> http://www.myself.com/modules.php?.....

This seems rather like a misconfiguration of phpNuke (of which I am not
familiar). It will probably use an expression like this to generate the
links:
    $link = $server_uri.$module_uri."?...";

So, if $server_uri is "http://www.myself.com/" and $module_uri is
"/modules.php", you will see this problem. See if you can find a
configuration option that looks guilty.

Regards,
Robet Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org