[users@httpd] Building httpd 2.4.1 RPM

2012-03-20 Thread Samuel Lentz
I am trying to build an RPM for 2.4.1 on CentOS 6.2. I keep receiving 
messages that I need distcache-devel to build the RPM. CentOS 6.2 does 
not have that package available. It there a way to disable the need of 
that package in the spec file ex remove the requirement and the build 
option that needs it.



Thanks,
Sam L

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] mod_fcgid 2.3.6 not loading with Apache 2.4

2012-03-20 Thread William A. Rowe Jr.
On 3/20/2012 10:15 AM, Pablo wrote:
> 
> I have compiled Apache 2.4.1 with mod_fcgid-2.3.6 under CenOS 5.6 without 
> problem
> (latest versions on website). 

2.4 arrived after fcgid 2.3.6 was published.  The code in subversion should
be correct, I think.  If you have a subversion client, you can check it out
from here, trunk is at 2.3.7-dev and soon to be tagged;

http://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk/

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] undefined symbol: apr_tempy_dir_get when loading mod_auth_digest module

2012-03-20 Thread Tianyin Xu
oh my god!!! that is exactly the reason!! I don't know when I screwed
it up...

Thanks a lot, Eric!!! You are awesome as always!!

T


On Tue, Mar 20, 2012 at 12:08 PM, Eric Covener  wrote:

> > LoadModule auth_digest_module modules/mod_auth_digest.so
> >
> > However, I encountered the following information:
> >
> > httpd: Syntax error on line 192 of
> > /home/tianyin/apache-2.4.1/conf/httpd.conf: Cannot load
> > /home/tianyin/apache-2.4.1/modules/mod_auth_digest.so into server:
> > /home/tianyin/apache-2.4.1/modules/mod_auth_digest.so: undefined symbol:
> > apr_tempy_dir_get
>
> Did you edit this by accident and change apr_temp_dir_get to
> apr_tempy_dir_get?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


-- 
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/


[users@httpd] Mod_auth_radius

2012-03-20 Thread Jaworski, Frank

Hello,

Has anyone used mod_auth_radius before?  I can not get caching to function with 
it.  Thanks.

Frank Jaworski


Re: [users@httpd] undefined symbol: apr_tempy_dir_get when loading mod_auth_digest module

2012-03-20 Thread Eric Covener
> LoadModule auth_digest_module modules/mod_auth_digest.so
>
> However, I encountered the following information:
>
> httpd: Syntax error on line 192 of
> /home/tianyin/apache-2.4.1/conf/httpd.conf: Cannot load
> /home/tianyin/apache-2.4.1/modules/mod_auth_digest.so into server:
> /home/tianyin/apache-2.4.1/modules/mod_auth_digest.so: undefined symbol:
> apr_tempy_dir_get

Did you edit this by accident and change apr_temp_dir_get to apr_tempy_dir_get?

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] undefined symbol: apr_tempy_dir_get when loading mod_auth_digest module

2012-03-20 Thread Tianyin Xu
Hi, all,

I want to load the mod_auth_digest module into my Apache httpd, here is my
load directive in my httpd.conf (line no: 192)

LoadModule auth_digest_module modules/mod_auth_digest.so

However, I encountered the following information:

httpd: Syntax error on line 192 of
/home/tianyin/apache-2.4.1/conf/httpd.conf: Cannot load
/home/tianyin/apache-2.4.1/modules/mod_auth_digest.so into server:
/home/tianyin/apache-2.4.1/modules/mod_auth_digest.so: undefined symbol:
apr_tempy_dir_get

Does the mod_auth_digest module rely on other modules? I didn't find the
information from manual.


Thanks a lot,
Tianyin

-- 
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/


[users@httpd] mod_fcgid 2.3.6 not loading with Apache 2.4

2012-03-20 Thread Pablo

Hello,

I have compiled Apache 2.4.1 with mod_fcgid-2.3.6 under CenOS 5.6 
without problem (latest versions on website). After installation (make 
install) i try to load mod_fcgid from this line in httpd.conf:


LoadModule fcgid_module modules/mod_fcgid.so

After this, I run the command './bin/apachectl -k start' and get this error.

httpd: Syntax error on line 92 of /opt/apache24/conf/httpd.conf: Cannot 
load /opt/apache24/modules/mod_fcgid.so into server: 
/opt/apache24/modules/mod_fcgid.so: undefined symbol: ap_unixd_setup_child


The most relevant information that I found about this error is here:

https://trac.osgeo.org/mapserver/ticket/4215 ===> "unixd forking removed 
in r13200 "


Means this that mod_fcgid 2.3.6 is not more compatible with Apache 2.4 
or am I doing something wrong?


Thanks in advance and sorry for my bad English.






RE: [users@httpd] adding particular option to httpd build

2012-03-20 Thread Bennett, Tony
If you still have the original "build tree" for your current version of Apache,
you can look at the top of "config.log" file, or you can look at 
"config.nice"...
...both of these have the original configure command and are located at
the top of the build tree in the same directory as "configure".

-tony

From: Igor Cicimov [mailto:icici...@gmail.com]
Sent: Tuesday, March 20, 2012 12:30 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] adding particular option to httpd build


Not enogh info what apache and what OS? Anyway, read this:
http://httpd.apache.org/docs/2.2/programs/configure.html

You have same for 2.0 and 2.4
On Mar 20, 2012 10:06 AM, "Security Admin (NetSec)" 
mailto:secad...@netsecdesign.com>> wrote:
Currently have an apache server with following options:

Server compiled with
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


I would like to maintain these options in the new build.  When I typed 
"./configure -help" I could not find these options listed.  If someone could 
let me know what syntax I need to use (./configure ...) much appreciated.


Re: [users@httpd] german umlauts in filename

2012-03-20 Thread Hajo Locke

You could try rewriting utf-8 representation of umlaut [or other
common char people type into the URL directly] into your local
codepage representation.


this works. is not my preferred solution for this but it works for now. i 
will fix my ftp-server to store filenames utf8


Thanks,
Hajo 



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] german umlauts in filename

2012-03-20 Thread Eric Covener
On Tue, Mar 20, 2012 at 9:35 AM, Hajo Locke  wrote:
>
>>> Use links that are URL-encoded with the proper bytes so clients don't
>>> have to choose the codepage to request in.
>
>
> hmm, but when typing url directly in browser in most cases utf8 is used by
> browser.
> how to solve this?

You could try rewriting utf-8 representation of umlaut [or other
common char people type into the URL directly] into your local
codepage representation.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] german umlauts in filename

2012-03-20 Thread Hajo Locke



Use links that are URL-encoded with the proper bytes so clients don't
have to choose the codepage to request in.


hmm, but when typing url directly in browser in most cases utf8 is used by 
browser.

how to solve this?

Thanks,
Hajo 



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How to redirect all requests for domain A to domain B

2012-03-20 Thread Rich Bowen

On Mar 19, 2012, at 4:53 PM, Joe Hansen wrote:

> Hi All,
> 
> I'd like to redirect all (http and https) requests for domain a.com to domain 
> b.com. 
> 
> I have the following in the apache config files:
>   Redirect https:/a.com https://www.b.com
>   Redirect http://a.com http://www.b.com
> 
> Though all the http requests are correctly getting redirected, https requests 
> aren't. What do I need to do to get this working?

This isn't valid at all. The first argument of a Redirect directive is a URL 
path, not a fully-qualified URL.

Your question is answered here: 
http://httpd.apache.org/docs/trunk/rewrite/remapping.html#canonicalhost  The 
solutions offered are in decreasing order of best practice, but note that the 
 syntax is only available in 2.4.

You should, of course, consider upgrading to 2.4 if possible.


--
Rich Bowen
rbo...@rcbowen.com :: @rbowen
rbo...@apache.org








Re: [users@httpd] can't password protect a file but can a directory

2012-03-20 Thread Rich Bowen

On Mar 20, 2012, at 5:42 AM, phil curb wrote:

> 
> I can't get b.htm to be password protected.
> 
> I can put directives AuthType, AuthName, AuthUserFile, Require..  In 
>   and get the directory password protected.
> 
> But I want the directory to not be password protected, and for just a file 
> (b.htm) to be password protected but i'm having no luck in my attempts

Please elaborate on "no luck". What happens, exactly? Are there error messages? 
(ie, in the error log, not in the browser.)

> 
> here are some extracts from my httpd.conf file
> 
> 
> 
> 
> #AuthUserFile "C:/Program Files/Apache Software 
> #Foundation/Apache2.2/bin/pfile"
> #AuthType Basic
> #AuthName "My Secret Page"
> 
>Options Indexes FollowSymLinks
> 
>AllowOverride None
> 
>Order allow,deny
>Allow from all
> 
> 
> 
> 
> 
> 
>Order allow,deny
>Deny from all
>Satisfy All
> 
> 
> 
> AuthType Basic
> AuthName "Restricted Files"
> AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/pfile"
> Require user barny
> 
> 
> 
> AuthType Basic
> AuthName "My Secret Page"
> AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/pfile"
> Require user barny
> 
> 
> 
> AuthType Basic
> AuthName "Restricted Files"
> AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/pfile"
> Require user barny
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 

--
Rich Bowen
rbo...@rcbowen.com :: @rbowen
rbo...@apache.org








Re: [users@httpd] german umlauts in filename

2012-03-20 Thread Eric Covener
On Tue, Mar 20, 2012 at 8:35 AM, Hajo Locke  wrote:
> Hello List,
>
> i have some files with german umlauts ö ä ü in filename and want to request
> them by http.
> filename is coded in latin1, in console/ftp etc. all works well and looks
> good.
> when requesting file ü.txt i see this error in log:
> File does not exist: \xc3\xbc.txt
>
> It just works if i recode charset of filename with convmv to utf8.
> convmv -f latin1 -t utf8 ü.txt --notest
>
> I cant do this for all my files.
> Is there a way to help apache find the file even if its filename is coded
> not in utf8?


Use links that are URL-encoded with the proper bytes so clients don't
have to choose the codepage to request in.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] german umlauts in filename

2012-03-20 Thread Hajo Locke

Hello List,

i have some files with german umlauts ö ä ü in filename and want to request 
them by http.
filename is coded in latin1, in console/ftp etc. all works well and looks 
good.

when requesting file ü.txt i see this error in log:
File does not exist: \xc3\xbc.txt

It just works if i recode charset of filename with convmv to utf8.
convmv -f latin1 -t utf8 ü.txt --notest

I cant do this for all my files.
Is there a way to help apache find the file even if its filename is coded 
not in utf8?


Thanks,
Hajo 



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] can't password protect a file but can a directory

2012-03-20 Thread phil curb

I can't get b.htm to be password protected.

I can put directives AuthType, AuthName, AuthUserFile, Require..  In 
  and get the directory password protected.

But I want the directory to not be password protected, and for just a file 
(b.htm) to be password protected but i'm having no luck in my attempts

here are some extracts from my httpd.conf file




#AuthUserFile "C:/Program Files/Apache Software #Foundation/Apache2.2/bin/pfile"
#AuthType Basic
#AuthName "My Secret Page"

Options Indexes FollowSymLinks

AllowOverride None

Order allow,deny
Allow from all






Order allow,deny
Deny from all
Satisfy All



AuthType Basic
AuthName "Restricted Files"
AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/pfile"
Require user barny



AuthType Basic
AuthName "My Secret Page"
AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/pfile"
Require user barny



AuthType Basic
AuthName "Restricted Files"
AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/pfile"
Require user barny




-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] adding particular option to httpd build

2012-03-20 Thread Simone Caruso

> I would like to maintain these options in the new build.  When I typed
> “./configure –help” I could not find these options listed.  If someone could 
> let
> me know what syntax I need to use (./configure …) much appreciated.
> 

Most of these are set running configure, u should study how automake works... a
security expert... lol

-- 
Simone Caruso
IT Consultant
+39 349 65 90 805

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] adding particular option to httpd build

2012-03-20 Thread Igor Cicimov
Not enogh info what apache and what OS? Anyway, read this:
http://httpd.apache.org/docs/2.2/programs/configure.html

You have same for 2.0 and 2.4
 On Mar 20, 2012 10:06 AM, "Security Admin (NetSec)" <
secad...@netsecdesign.com> wrote:

>  Currently have an apache server with following options:
>
> ** **
>
> *Server compiled with*
>
> *-D APACHE_MPM_DIR="server/mpm/prefork"*
>
> *-D APR_HAS_SENDFILE*
>
> *-D APR_HAS_MMAP*
>
> *-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)*
>
> *-D APR_USE_SYSVSEM_SERIALIZE*
>
> *-D APR_USE_PTHREAD_SERIALIZE*
>
> *-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT*
>
> *-D APR_HAS_OTHER_CHILD*
>
> *-D AP_HAVE_RELIABLE_PIPED_LOGS*
>
> *-D HTTPD_ROOT="/etc/httpd"*
>
> *-D SUEXEC_BIN="/usr/sbin/suexec"*
>
> *-D DEFAULT_PIDLOG="run/httpd.pid"*
>
> *-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"*
>
> *-D DEFAULT_LOCKFILE="logs/accept.lock"*
>
> *-D DEFAULT_ERRORLOG="logs/error_log"*
>
> *-D AP_TYPES_CONFIG_FILE="conf/mime.types"*
>
> *-D SERVER_CONFIG_FILE="conf/httpd.conf"*
>
> ** **
>
> ** **
>
> I would like to maintain these options in the new build.  When I typed
> “./configure –help” I could not find these options listed.  If someone
> could let me know what syntax I need to use (./configure …) much
> appreciated.
>