If this is something where you are giving the new
user a shell account, anything you put into the
/etc/skel directory is automatically copied to their
newly-made home directories. This includes folders, files,
scripts, etc. Therefore if you have the httpd.conf set up
so that the user directory is 'public-html', then
you go into the /etc/skel (as root) and create the
'public-html' folder and anything else that you want each user
to have.
I am having a problem with setting a directory to
use basic auth in a VirtualDomain. It works fine for
the default domain, and the virt is setup as
so:<br><br><VirtualHost 156.99.160.161><br> ServerAdmin
koivi@...<br> DocumentRoot /home/qtr/qtrmoon<br> ServerName
koivi.penguinpowered.com<br> ScriptAlias /cgi-bin/ "/home/qtr/cgi-bin/"<br>
Options Includes ExecCGI<br> ErrorLog
logs/qtr-error_log<br> CustomLog logs/qtr-access_log
common<br></VirtualHost><br><br>I've tried adding a "AccessFileName
.htaccess"
directive to the VirtualHost definition, but that didn't
work either. I would bet that I am missing a
configuration option somewhere. My .htaccess files look like
the following:<br><br>AuthUserFile
/home/httpd/webpasswds<br>AuthGroupFile /dev/null<br>AuthName "Password
Protected
Areas"<br>AuthType Basic<br><Limit GET POST><br> Require valid
user<br></Limit><br><br>I had even changed the limit to "Require user
username" where username was a valid user defined in the
webpasswds file.
Does anyone know if there is a problem running Apache under windows 2000? I
tried to start the service and got a Error 1067 does that mean anything to
anyone
Actually from what I heard over at the state
offices (MN), they found that a similar error occurs in
Win2000 with their Apache install. They spent about a
month trying to figure it out, but never resolved the
problem. They finally came to their senses and installed
it on a UNIX server.<br><br>I would venture to guess
that the error has something to do with the slight
differences in the 2000 kernel with the NT 4 kernel and not
the Apache software. Try checking the M$ site for
reports on this. Afterall, it could be just one of the
32,000 bugs not patched. ;)
Thanks for the infor on Win2k. I installed NT
instead of 2000. I had everything working well yesterday
but then on one of the reboots of the machine the
service will not start now and when trying to start it
manualy I get the message:Count not start the Apache
service on \\KICK. Error 1067: The process terminated
unexpectedly. Does anyone know what could cause this
error?<br><br>Thank you
I have apache 1.3.9 for windows 95/98 running on
my machine. I am unable to execute cgi scripts
(currently perl) on my machine. I have modified the
httpd.conf file as suggested by a book. Whenever I try to
run the script by entering the address into the URL
or by the POST method of a html document, I see the
message "Host contacted. Waiting for reply...". and
nothing seems to happen. There are no entries in the
access or the error logs. Can anyone let me know if
apache can execute scripts in the windows 95/98
environment and if so do I need any more setup on my side?
Any help would be appreciated.<br><br>Thanks
I haven't set up apache in a windows environment,
but did you happen to install perl before trying to
execute scripts? I would think that you'd need the
interpreter in order for the system to know what to do with
the "text" files.
Yes. The perl interpreter is in
c:\perl\perl-5.000 directory. I also changed the httpd.conf file to
include "Options ExecCGI" and "Addhandler .cgi .pl". The
perl script is a very simple script which just has a
print statement. I also included the shabang statement
(#! c:\perl\perl-5.000\perl.exe) at the 1st line in
the script. I can execute the script from the command
line. When I type in the URL in the browser, I see a
message "host contacted.. Waiting for reply..." and
nothing happens. While shutting down windows, I get a
message which states that Perl is still running and I
have to manually end that task. I have no clue how to
proceed.<br><br>Thanks for the reply....
I am going to assume you are working with a VirtualDomain. Try "Options Include
ExecCGI" instead, and you might want to add a<br>ScriptAlias /cgi-bin/
"C:\wherever\perl\scripts\are"
Hi,<br><br>I need to know how to make Apache
handle extra-path-info in URLs. By this I mean URLs
which have extra info after a "/" after the
filename,<br><br>e.g.<br><a href=http://www.mysite.com/index.jsp/mypath/stuff
target=new>http://www.mysite.com/index.jsp/mypath/stuff</a><br><br>I can't get
this feature to work on Apache, could
someone help me out?<br><br>Thanks,<br>Jason
Is this club dead, or are there actually people
reading it? I see every once in a while a new member
joins. I was hoping that this club would be a bit more
active so I could learn a little more about Apache.
If you’re a Apache expert, please check out my
company’s new website at www.arzoo.com. Lots of people are
posting technical questions about Apache, and you can get
paid for answering them. It only takes a minute to
register and get started. <br> <br>If you have some Apache
questions of your own, you can also get them answered at
Arzoo. Basically, the site is designed for tech experts
to exchange information and
assistance.<br><br>Please check it out when you have a minute.
Thanks!<br><br><a href=http://www.arzoo.com/arzoo/com/arzoo/common/home.jsp
target=new>http://www.arzoo.com/arzoo/com/arzoo/common/home.jsp</a><br><br>www.a\
rzoo.com
Hello peoples..<br> Quicky questions. Running
apache 1.3.12 on solaris 2.5.1, Anyone know which
setting to modify, and to what to allow directory
listings? IE: Say you have a directory with no index.html,
and you want the user files to be shown. Is it a
setting in the httpd.conf? If so, which?
Thanks!<br><br>-C. (Chris)
I get the following error when I try and compile
the apache source code. I have followed the
instructions as per readme instructions.<br><br>c89
-I/usr/include -I. -I../os/unix I../include -DHPUX11
-DUSE_HSREGEX -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED`../apaci` -DPOSIX_MISTAKE -c regcomp.c
-L/usr/lib<br><br>Get the following errors<br><br>cc:
"../include/hsregex.h", line 27: error 1000: Unexpected symbol:
"regoff_t".<br>cc: "../include/hsregex.h", line 35: error 1000:
Unexpected symbol: "regoff_t".<br>cc:
"../include/hsregex.h", line 36: error 1000: Unexpected symbol:
"rm_eo".<br>cc: "../include/hsregex.h", line 37: error 1000:
Unexpected symbol: "}".<br>cc: "../include/hsregex.h", line
36: warning 557: Missing declaration specifiers,
"int" assumed.<br>cc: "../include/hsregex.h", line 37:
error 1573: Type of "regmatch_t" is undefined due to an
illegal declaration.<br>cc: "../include/hsregex.h", line
75: error 1000: Unexpected symbol: "regmatch_t".
<br><br>Am I doing something wrong, I needed to ammend the
configure script to pick up c89 and not cc (which it does
by default), maybe that is what has caused the
problem. If anyone could help it would be greatly
appreciated.
Is there some reason you specifically need
c89?<br>You could probably have use CC as easily, if it's
installed. By the log entries you send, it looks like c89 is
using cc anyway....<br><br>What OS are you using, and
is switching to Linux an option?<br><br>If you can't
get c89 to work (though it should), you might try
GNU's gcc. It's free, and you can probably even get a
binary port. (look at GNU.org)<br><br>Good luck.
cc on this machine is not ANSI C complient so the
./config complained, whereas c89 is OK. <br><br>This is
for work and the OS is supported by the UNIX group,
who wont give me a root password, thats why I did not
try installing gcc.<br><br>thanks for helping
Our shop uses K&R C as it's (regrettably
stubborn) standard, Probably because the cc doesn't use
ANSI C as it's default. Virtually any C compiler has
an ANSI flag, though. try:<br><br>man cc<br><br>That
should give you the documentation for the command line
options. For ours, the option is -Aa<br><br>From our
manual:<br><br> -Amode Specify the compilation standard to be
used by the compiler. mode can be one of the following
letters:<br> c Compile in a mode compatible with HP-UX releases
prior to 7.0. (See The C Programming Language, First
Edition by Kernighan and Ritchie). This option is
currently the default. The default may change in future
releases.<br> a Compile under ANSI mode (ANSI programming
language C standard ANS X3.159-1989). When compiling under
ANSI mode, header files define only those names
specified by the standard. To get the same name space as in
compatibility mode (-Ac), define the symbol
_HPUX_SOURCE.<br><br><br>Again, good luck. =o)
Hi all!<br>I recently installed Apache and
ActivePerl on a Windows 95 machine (don't worry, I'll soon
move it to Windows NT or Linux!). I am wanting to
offer free web space but recent attempts with uploading
using the CGI-LIB.pl file have failed. It will upload
ASCII files (like html documents) fine, but pictures
and other binary files become currupt.<br>If anyone
knows what the problem is or has an alternate way
around things, any help would be great!
use CGI; # as in CGI.pm, not CGI_LIB.pl<br><br>It
handles uploads fine, using the uploaded filename scalar
as the filehandle from which you read. Not strict,
but it works great.<br><br>Just be SURE you declare
the form as mime-multipart (as in print
CGI->start_multipart_form, or something like that. It's in the docs.) If you
don't, it will quietly fail and not tell you exactly
why.<br><br>Paul
I think I have tried everything. Here is the
deal. My html documents are in
d:\www\html\somepage.html my servlets are in
D:\apachejserv\servlets\someservlet.java I have includes set up for the html
directory
that pulls the includes from
d:\www\html\include\header.html<br>Html pages can access header.html but if I
create a
servlet and put in the same include statement Apache
doesn't even try to process the command. I tried to set
the option include for the servlet directory in the
httpd.conf file but then the server wouldn't start. Does
anyone have any ideas why this won't work.<br><br>Thank
you,<br><br>Steven
Does anyone know how to get virtual hosts working
with SSL (mod_ssl)?<br><br>I'd like to have two
directories both served up with SSL
like:<br>/www/secure/login<br>/www/secure/secureinfo<br><br>I would think it'd
be like:<br><br>NameVirtualHost
111.22.33.44:80<br>NameVirtualHost 111.22.33.44:8080<br>#nonsecure
dir<br><VirtualHost 111.22.33.44:80><br> ServerName
www.domain.tld<br> DocumentRoot
/www/domain-80<br></VirtualHost><br>#secure dirs<br><VirtualHost
111.22.33.44:443><br>
ServerName www.domain.tld<br> ServerPath /login<br>
DocumentRoot /www/secure/login<br> ... #more SSL
stuff<br></VirtualHost><br><VirtualHost 111.22.33.44:443><br>
ServerName
www.domain.tld<br> ServerPath /secureinfo<br> DocumentRoot
/www/secure/secureinfo<br> ... #more SSL
stuff<br></VirtualHost><br><br>so <a href=http://www.domain.tld
target=new>http://www.domain.tld</a> would not be secure,
but<br>https://www.domain.tld/login and https://www.domain.tld/secureinfo would
be
secure<br><br>can anyone help?
I'm getting a Page Temporarily unavailable when i
access index.php3<br><br>I CAN access both .php and
.php3 pages! Now, I'm setting up PHPLIB and index.php3
calls "prepend.php3" via auto_prepend_file in the
php.ini file, and this works, but I have NO IDEA whay I'm
getting the Cannot find Server/Page Unavailable
message?<br><br>Any ideas?<br><br>Pete
I have been developing a few Java servlets that
will be running in Tomcat. I am trying to configure
these servlets to use SSL communication. I know how to
do this using regular Java Server Sockets, but I am
not sure how to enable SSL on a servlet, especially
in the Tomcat environment. Is SSL communication
transparent to the servlet, or do I need to rewrite the
servlet code to enable SSL? Does anyone have any
experience with this?<br><br>Thanks!
when i try to access x.cgi it says that i do not
have permission. i have tried to edit my .conf files
but cant get it to work. im running windows
98...(yeah i know)my linux box called it quits hard drive
got scrambled you know the story.