Apache and Aliases,compiling Apache 1.2.5

Apache and Aliases,compiling Apache 1.2.5

Post by Simon Boo » Wed, 11 Mar 1998 04:00:00



        First off, is there any way to setup Apache to use aliases
that automatically default to index.html?  If I go to
www.ece.ncsu.edu/manual I will get a 404 error, but
www.ece.ncsu.edu/manual/index.html works fine?  Is there a setting, or
would I need to modify the actual module?  

        I am aware of symbolic links, but the idea is to get away from
the 80 gazillion symbolic links we have in our docroot.

And now for the compiling Apache error.  Works fine for a while, then
gets to mod_crypt.c and then chokes.  Here is the output (the entire
thing):

(cd regex; make lib CC=gcc AUX_CFLAGS='-O2 -DLINUX=2 -DSTATUS '
RANLIB='ranlib')
make[1]: Entering directory `/home/staff/http/apache/src/regex'
rm -f *.o
sh ./mkh  -i _REGEX_H_ regex2.h regcomp.c regerror.c regexec.c
regfree.c >regex.tmp
cmp -s regex.tmp regex.h 2>/dev/null || cp regex.tmp regex.h
rm -f regex.tmp
sh ./mkh  -p regcomp.c >regcomp.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -DSTATUS    -c regcomp.c -o
regcomp.o
sh ./mkh  -p engine.c >engine.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -DSTATUS    -c regexec.c -o
regexec.o
sh ./mkh  -p regerror.c >regerror.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -DSTATUS    -c regerror.c -o
regerror.o
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -DSTATUS    -c regfree.c -o
regfree.o
rm -f libregex.a
ar crv libregex.a regcomp.o regexec.o regerror.o regfree.o
a - regcomp.o
a - regexec.o
a - regerror.o
a - regfree.o
ranlib libregex.a
make[1]: Leaving directory `/home/staff/http/apache/src/regex'
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   alloc.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   http_main.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   http_core.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   http_config.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   http_request.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   http_log.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   http_protocol.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   rfc1413.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   util.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   util_script.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   modules.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   buff.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   md5c.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   util_md5.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   explain.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   http_bprintf.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   util_date.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   util_snprintf.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_env.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_log_config.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_mime.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_negotiation.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_status.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_include.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_dir.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_cgi.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_asis.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_imap.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_actions.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_userdir.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_alias.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_rewrite.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_access.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_auth.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_digest.c
gcc -c -Iregex  -O2 -DLINUX=2 -DSTATUS   mod_browser.c
gcc    -o httpd alloc.o http_main.o http_core.o http_config.o
http_request.o http_log.o http_protocol.o rfc1413.o util.o
util_script.o modules.o buff.o md5c.o util_md5.o explain.o
http_bprintf.o util_date.o util_snprintf.o mod_env.o mod_log_config.o
mod_mime.o mod_negotiation.o mod_status.o mod_include.o mod_dir.o
mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o
mod_alias.o mod_rewrite.o mod_access.o mod_auth.o mod_digest.o
mod_browser.o regex/libregex.a  
mod_auth.o: In function `authenticate_basic_user':
mod_auth.o(.text+0x2d0): undefined reference to `crypt'
make: *** [httpd] Error 1

hhhmmm??

any suggestions?

Thanks,
Simon Booth
http://www.wknc.ncsu.edu/simon

 
 
 

Apache and Aliases,compiling Apache 1.2.5

Post by Kevin P. Ne » Wed, 11 Mar 1998 04:00:00



>    First off, is there any way to setup Apache to use aliases
>that automatically default to index.html?  If I go to
>www.ece.ncsu.edu/manual I will get a 404 error, but
>www.ece.ncsu.edu/manual/index.html works fine?  Is there a setting, or
>would I need to modify the actual module?  

In your Alias directive you are putting a / on the end of the alias
name? Don't do that.

Quote:>    I am aware of symbolic links, but the idea is to get away from
>the 80 gazillion symbolic links we have in our docroot.

Bonus.

Quote:>And now for the compiling Apache error.  Works fine for a while, then
>gets to mod_crypt.c and then chokes.  Here is the output (the entire
>thing):
>gcc    -o httpd alloc.o http_main.o http_core.o http_config.o
>http_request.o http_log.o http_protocol.o rfc1413.o util.o
>util_script.o modules.o buff.o md5c.o util_md5.o explain.o
>http_bprintf.o util_date.o util_snprintf.o mod_env.o mod_log_config.o
>mod_mime.o mod_negotiation.o mod_status.o mod_include.o mod_dir.o
>mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o
>mod_alias.o mod_rewrite.o mod_access.o mod_auth.o mod_digest.o
>mod_browser.o regex/libregex.a  
>mod_auth.o: In function `authenticate_basic_user':
>mod_auth.o(.text+0x2d0): undefined reference to `crypt'
>make: *** [httpd] Error 1

Uh, isn't crypt() in libc? Or does Linux have a libcrypt?

If the latter then just add -lcrypt to the Configuration file. If the
former then you have a larger problem.

--
XCOMM Kevin P. Neal, Junior, Comp. Sci.     -   House of Retrocomputing


XCOMM "Good grief, I've just noticed I've typed in a rant. Sorry chaps!"

 
 
 

Apache and Aliases,compiling Apache 1.2.5

Post by Bertrand de Singl » Thu, 19 Mar 1998 04:00:00


Quote:> And now for the compiling Apache error.  Works fine for a while, then
> gets to mod_crypt.c and then chokes.  Here is the output (the entire
> thing):

with Linux you should add "-lcrypt" to compile correctly (see
Configuration file in src dir.)

    Bertrand

 
 
 

1. script alias problem - Re: apache alias and script alias problem

I actually did not have the <Directory> setup properly.

I am still having a problem with the script alias.

For example.

I set an alias -

Alias / /home/user1/html/

and a Script Alias -
ScriptAlias /cgi-bin/ /home/user/cgi-bin/

However the script alias is not working because the log shows that
when entering:
http://localhost/cgi-bin/

/home/user/html/cgi-bin/ is actually being referenced.

When I remove the first Alias statement the cgi-bin script directory
is properly aliased.

Any suggestions.

Thanks.

---
Andrew

Please remove TOREMOVE chars to e-mail me

2. Linux & Adaptec 19160

3. apache alias and script alias problem

4. xdm for other platforms?

5. Compiling apache with apache

6. Access iDisk from linux?

7. apache 1.3.1, mod_db, db 2.4.14 - apache won't compile

8. biff clients for multiple mail files?

9. Compile options for IBM (compiling Apache Source Code)

10. Compiling and compiling Apache

11. Apache: special Alias needed

12. IFCONFIG with alias option for Apache WWW Server NeXT

13. Creating a ~user aliases in apache 1.2.4