Re: [users@httpd] apache 2.2.7 bit level info

2014-04-25 Thread Brett @Google
In addition, it is also useful to add "-xarch=native and -xcode=pic32" to
CFLAGS

-xcode=pic32 helps linking with .so libraries which are not solaris-savvy
(the equivalent of linux's -G / -fPIC)
-xarch=native will optimise the code for the same machine it is compiling
on (good if all your machines are all the same hardware / cpu type..
otherwise don't use it)

It is also useful to add :

"-L/lib and -R/lib" to
LDFLAGS

And keep in mind you cannot link 32 bit libraries and 64 bit libraries, so
-f you use -m64 then you need all 64 bit compiled third party libraries, it
will ignore 32 bit libraries, exactly like they don't exist.

The Solaris linker has no particular defaults (it ignores /usr/local/lib in
particular), so unless you can change the library search path for the whole
machine, the -R is pretty much required to find your libs.

The Solaris versions of libraries which apache depends on, are very old and
will conflict with building newer software, so best to roll your own libs,
or stick with more modern versions from sunfreeware

Cheers
Brett


On Sat, Apr 26, 2014 at 12:58 PM, Jesus Cea  wrote:

> On 25/04/14 22:48, Eric Covener wrote:
> > On Fri, Apr 25, 2014 at 4:43 PM, venu thangalapally 
> wrote:
> >> can you please provide more info how can i build it to 64-bit... apache
> 2.2
> >> tar file from apache link does not say the bit level information
> >
> > The bit level is not really a property of source code.
> >
> > You'll have to consult the manual for your compiler (sun studio, gcc,
> > ???) for what flags to add for 64-bit code. Maybe it's even the
> > default.  for httpd, it's best to bake the flag into CC="" environment
> > variable, rather than CFLAGS.
>
> Try:
>
> export CFLAGS="-m64"
> export LDFLAGS="-m64"
>
> And then do normal compilation.
>
> You will need 64 bit versions of all dependencies, of course.
>
> --
> Jesús Cea Avión _/_/  _/_/_/_/_/_/
> j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
> Twitter: @jcea_/_/_/_/  _/_/_/_/_/
> jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
> "Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
> "My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
> "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
>
>


-- 
Whenever you find yourself on the side of the majority, it is time to pause
and reflect.

- Mark Twain


[users@httpd] Apache Admin button on XAMPP Control Panel for non-80 port

2014-04-25 Thread Carl Hruska
Hello everyone,

I have a small problem with the Admin button on the XAMPP Control Panel. Please 
read the following information pertaining to this problem and reply with 
suggestions (any suggestions; I'm not afraid to research.). Any help will be 
greatly appreciated.


THE PROBLEM:
The problem I am having is that the URL for the browser address bar (after 
clicking the Admin button) begins with http://localhost/...
I want the URL to begin with http://localhost:2375/...


SOME BACKGROUND:
My PC is Windows Vista Home Premium SP2.

Recently (April 2014) I installed XAMPP 1.8.3. With that install came Apache 
2.4.7 and PHP 5.5.9. I upgraded phpMyAdmin to 4.1.13 and set the root password 
(after much researching).

I have searched the internet and have read at least 25 articles trying to find 
a solution to this situation.

I have read the Apache Documentation in several places (including Access 
Control, Mapping URLs to the Filesystem, Microsoft Windows, URL Rewriting 
Guide, Configuration Files, and Filters). I did not see any discussion about 
the situation I'm experiencing.

I have also read much in http://localhost:2375/xampp/ without finding anything 
helpful for this problem.


THE ACTION:
When I installed XAMPP, I discovered I had to change the port that Apache 
listens on from 80 to 2375. 2375 was my choice. Apparently IIS or something 
else uses port 80. (I changed Skype to not consider port 80.)

I searched Bing and Google and read many of the files in the XAMPP folders and 
finally was able to change the port in C:\xampp\apache\conf\httpd.txt   via
Listen 2375. I did not change anything else in the text file.

With that change, I can start Apache via the XAMPP Control Panel and then open 
a browser (Firefox) and type an address like http://localhost:2375/wxyz.html 
and the wxyz document appears. I am okay with having to type the port number. 
So that part works well.


THE EXACT PROBLEM:
But when I click the Admin button on the XAMPP Control Panel, the browser 
opens, and the address begins as http://localhost/
An error (404) occurs. [Obviously, the Control Panel does not know that I 
changed the port that Apache listens on.]


INFORMATION I DESIRE:
What I want to accomplish is to learn the file name (if the solution is that 
simple) that I can edit with a change to the localhost (or to 127.0.0.1) so 
that pressing the Admin button results in the address bar beginning with 
http://localhost:2375/.


FINAL COMMENTS:
I don't know if this problem of mine is within XAMPP or Apache (or even 
somewhere else that I am not even aware of).

Any help anyone can give me will be greatly appreciated. 

Note - I would like to be able to have full use of the Control Panel, but not 
having full use is not a deal breaker.

Thank you very much for your time regardless of the outcome.

Curious Carl

Re: [users@httpd] apache 2.2.7 bit level info

2014-04-25 Thread Jesus Cea
On 25/04/14 22:48, Eric Covener wrote:
> On Fri, Apr 25, 2014 at 4:43 PM, venu thangalapally  wrote:
>> can you please provide more info how can i build it to 64-bit... apache 2.2
>> tar file from apache link does not say the bit level information
> 
> The bit level is not really a property of source code.
> 
> You'll have to consult the manual for your compiler (sun studio, gcc,
> ???) for what flags to add for 64-bit code. Maybe it's even the
> default.  for httpd, it's best to bake the flag into CC="" environment
> variable, rather than CFLAGS.

Try:

export CFLAGS="-m64"
export LDFLAGS="-m64"

And then do normal compilation.

You will need 64 bit versions of all dependencies, of course.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature


[users@httpd] Re: Conditional response body modification

2014-04-25 Thread Doug Strick
> In 2.4, it seems like you should be able to register mod_substitute
> via mod_filter.  mod_filter has a "match" parameter that in 2.4 is an
> ap_expr expression, so it can ready basically anything floating around
> in the server.
>
> mod_filter can be pretty intimidating though.


I really wish I could go to 2.4, but we're stuck with 2.2 due to using
Adobe and Oracle modules that don't support 2.4 yet.  I feel like I'm
really close to coming up with something using mod_parp, but just
can't figure how to use it exactly.  Documentation is clear up until I
get to the API section and that looks like I need good knowledge of
programming to understand.


Re: [users@httpd] Re: Conditional response body modification

2014-04-25 Thread Eric Covener
>  Anyone
> have any ideas how I can make the HTTP_COOKIE data available to
> mod_substitute?  Let me know if I'm completely off base here in
> understanding what this module can do as well.  Thanks

In 2.4, it seems like you should be able to register mod_substitute
via mod_filter.  mod_filter has a "match" parameter that in 2.4 is an
ap_expr expression, so it can ready basically anything floating around
in the server.

mod_filter can be pretty intimidating though.

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



[users@httpd] Re: Conditional response body modification

2014-04-25 Thread Doug Strick
I wasn't able to come up with anything further on the mod_ext_filter
solution.  I did come across mod_parp  (
http://parp.sourceforge.net).  It says it's able to parse the request data
and make it available to other apache modules.  I've gotten it compiled and
enabled on my apache, but I'm not sure I'm understanding how to pull the
data into mod_substitute.  Anyone have any ideas how I can make the
HTTP_COOKIE data available to mod_substitute?  Let me know if I'm
completely off base here in understanding what this module can do as well.
 Thanks



  SetEnvIf  HTTP_COOKIE "(^|)CUST_TYPE=test"   parp




On Thu, Apr 17, 2014 at 3:01 PM, Doug Strick wrote:

> I've come up with the below config using mod_ext_filter which isn't
> desirable, but it's the only thing I've been able to come up with so far.
>  It's not working exactly yet.  Any suggestions?
>
>
> SetEnvIf HTTP_COOKIE "USER_TYPE=test" FILTER=$1
>
>
> *Inside VirtualHost:*
>
> ExtFilterDefine doug mode=output intype=text/html enableenv=FILTER \
>
> cmd="/bin/bash /apps/httpd/scripts/replace.sh"
>
>
>
> 
>
>   SetOutputFilter doug
>
> 
>
>
>
> *replace.sh*
>
> #!/bin/bash
>
>
> /bin/sed -r 's/http\:\/\//https\:\/\//g'
>
>
> On Wed, Apr 16, 2014 at 10:23 AM, Doug Strick wrote:
>
>> Hello,
>>
>> I'm looking for a way to modify the data on outgoing requests
>> conditionally.  I've tried using mod_substitute, but that appears to be an
>> all or nothing module.  The documentation for mod_filter says it can be
>> invoked on environment variables, but it's not exactly clear on the valid
>> syntax for those variables.  Basically, I'm looking for a way to change all
>> links from HTTP to HTTPS in my outgoing responses for users with a specific
>> cookie.  Any suggestions?  Thanks
>>
>
>


Re: [users@httpd] apache 2.2.7 bit level info

2014-04-25 Thread Jeff Trawick
On Fri, Apr 25, 2014 at 4:43 PM, venu thangalapally wrote:

> can you please provide more info how can i build it to 64-bit... apache
> 2.2 tar file from apache link does not say the bit level information
>

Build apr, apr-util, and httpd with

CC="cc -m64" ./configure ...

Replace cc with gcc if necessary, or 64 with 32 if necessary.
Replace cc with full path to Sun Studio compiler if it isn't found in path.
You need matching versions of support libraries too.

If you've never built on Solaris before, maybe you are missing different
tools or libraries and maybe have a few uncomfortable tricks to learn about
setting PATH to avoid bogus cc.  Maybe http://sunfreeware.com/ is a good
place to look for binaries.


>
> Regards
> Venu
>
>
> On Fri, Apr 25, 2014 at 3:41 PM, Eric Covener  wrote:
>
>> On Fri, Apr 25, 2014 at 4:40 PM, venu thangalapally 
>> wrote:
>> > Guys.. do we have a 32-bit and 64-bit apache 2.2.27 http server ? for
>> > soalris ?
>> >
>>
>> You can build it either way.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/
http://edjective.org/


Re: [users@httpd] apache 2.2.7 bit level info

2014-04-25 Thread Eric Covener
On Fri, Apr 25, 2014 at 4:43 PM, venu thangalapally  wrote:
> can you please provide more info how can i build it to 64-bit... apache 2.2
> tar file from apache link does not say the bit level information

The bit level is not really a property of source code.

You'll have to consult the manual for your compiler (sun studio, gcc,
???) for what flags to add for 64-bit code. Maybe it's even the
default.  for httpd, it's best to bake the flag into CC="" environment
variable, rather than CFLAGS.

I wouldn't take the responsibility of compiling yourself too casually.

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



Re: [users@httpd] apache 2.2.7 bit level info

2014-04-25 Thread venu thangalapally
can you please provide more info how can i build it to 64-bit... apache 2.2
tar file from apache link does not say the bit level information

Regards
Venu


On Fri, Apr 25, 2014 at 3:41 PM, Eric Covener  wrote:

> On Fri, Apr 25, 2014 at 4:40 PM, venu thangalapally 
> wrote:
> > Guys.. do we have a 32-bit and 64-bit apache 2.2.27 http server ? for
> > soalris ?
> >
>
> You can build it either way.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] apache 2.2.7 bit level info

2014-04-25 Thread Eric Covener
On Fri, Apr 25, 2014 at 4:40 PM, venu thangalapally  wrote:
> Guys.. do we have a 32-bit and 64-bit apache 2.2.27 http server ? for
> soalris ?
>

You can build it either way.

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



[users@httpd] apache 2.2.7 bit level info

2014-04-25 Thread venu thangalapally
Guys.. do we have a 32-bit and 64-bit apache 2.2.27 http server ? for
soalris ?

Regards
Venu


Re: [users@httpd] Apache Processes in Windows

2014-04-25 Thread Jeff Trawick
On Fri, Apr 25, 2014 at 2:18 PM, Dino B.  wrote:

> Hi Apache experts,
>
> This is my first post to an Apache group, so please bear with me.  I am
> also new to Apache in general.
>
> My understanding is that under windows, there should be only 2 httpd
> processes once I start my Apache server (version 2.2).  One parent and one
> child.  The child then spawns multiple threads to handle incoming requests.
>
> However, I have seen cases where I had up to 8 or so httpd processes
> showing in Windows Task Manager.
>

Are 7 a child of the same parent httpd.exe process?

If you have MaxRequestsPerChild set to non-zero, you can have multiple
children even on Windows, while older processes finish serving lengthy
requests.


>
> I have been using an Apache module acting as server (written in Delphi) to
> service request from devices.
>
>
Its always possible that third-party modules create their own child
processes.

mod_status might show helpful information, but ISTR that httpd 2.2 on
Windows doesn't show the various process ids when there's more than one
child.  I'm not sure.



> Much appreciated
> _db_
>



-- 
Born in Roswell... married an alien...
http://emptyhammock.com/
http://edjective.org/


FW: Re: FW: [users@httpd] Help with Virtual Hosting on Linux 3.2 / Ubuntu 12.04.4

2014-04-25 Thread Roy Hinkelman - Technical Services

Thanks, that worked.
 
I had multiple listen directives. I cleared httpd.conf ( tried some code and 
left it there accidentally ) and removed "listen 80" from 
sites-available/example.com VHost settings
 
Another thread advised the use of "restart" instead of "reload" in "service 
apache2 restart", which seemed to work.
 
There are obviously several ways to do vhosts. Are there 
advantages/disadvantages to this method? If it is relevant, I need to have 
multiple sites on this server, each with their own config, and some with their 
own SSL.
 
Thanks again,
 
Roy
 


-Original Message-
From: "Eric Covener" 
Sent: Friday, April 25, 2014 10:29am
To: users@httpd.apache.org
Subject: Re: FW: [users@httpd] Help with Virtual Hosting on Linux 3.2 / Ubuntu 
12.04.4



On Fri, Apr 25, 2014 at 1:20 PM, Roy Hinkelman - Technical Services
 wrote:
> This site, for 2.4, https://httpd.apache.org/docs/2.4/vhosts/name-based.html
> , says to "simply" put the VirtualHost info into httpd.conf. FireFox says
> "Unable to Connect"

Missing a Listen directive, or a firewall problem. Not related to
VirtualHost directive.

If your packaging of httpd uses a sites-available/sites-enabled
layout, use it. If not, put it in httpd.conf.  The server doesn't
really care what ultimately gets included.


-- 
Eric Covener
cove...@gmail.com

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



[users@httpd] Apache Processes in Windows

2014-04-25 Thread Dino B.
Hi Apache experts,

This is my first post to an Apache group, so please bear with me.  I am
also new to Apache in general.

My understanding is that under windows, there should be only 2 httpd
processes once I start my Apache server (version 2.2).  One parent and one
child.  The child then spawns multiple threads to handle incoming requests.

However, I have seen cases where I had up to 8 or so httpd processes
showing in Windows Task Manager.

I have been using an Apache module acting as server (written in Delphi) to
service request from devices.

Much appreciated
_db_


Re: FW: [users@httpd] Help with Virtual Hosting on Linux 3.2 / Ubuntu 12.04.4

2014-04-25 Thread Eric Covener
On Fri, Apr 25, 2014 at 1:20 PM, Roy Hinkelman - Technical Services
 wrote:
> This site, for 2.4, https://httpd.apache.org/docs/2.4/vhosts/name-based.html
> , says to "simply" put the VirtualHost info into httpd.conf. FireFox says
> "Unable to Connect"

Missing a Listen directive, or a firewall problem. Not related to
VirtualHost directive.

If your packaging of httpd uses a sites-available/sites-enabled
layout, use it. If not, put it in httpd.conf.  The server doesn't
really care what ultimately gets included.


-- 
Eric Covener
cove...@gmail.com

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



FW: [users@httpd] Help with Virtual Hosting on Linux 3.2 / Ubuntu 12.04.4

2014-04-25 Thread Roy Hinkelman - Technical Services

Is there a preferred way to set up vhosts on Linux 3.2 / Ubuntu? When 
searching, I find conflicting ways of setting this up.
 
This site, for 2.4, https://httpd.apache.org/docs/2.4/vhosts/name-based.html , 
says to "simply" put the VirtualHost info into httpd.conf. FireFox says "Unable 
to Connect"

 
Here, 
http://www.rackspace.com/knowledge_center/article/ubuntu-apache-virtual-hosts , 
it says to put individual VirtualHosts in sites-available, and does not talk 
about httpd.conf.
 
Any help greatly appreciated.



Thanks,
 
Roy

+
- Multiple websites, each has it's own config file, single IP

- Linux 3.2.0-60-generic / Ubuntu 12.04.4

[users@httpd] Apache 2.4 Proxy Connect - connection reset

2014-04-25 Thread Vladimir-M. Obelic
Hello,

I have a working setup with apache 2.2 server acting as a remote proxy.

I'm using proxytunnel with two chained proxies: proxytunnel -q -X -p
localproxy:8080 -r remoteproxy:443 -d destination:22

I had to apply a patch for SSL to work though:
https://issues.apache.org/bugzilla/show_bug.cgi?id=29744

I'm now trying to do the same using the apache 2.4 server build
2.4.6-ubuntu (the above SSL issue is resolved in 2.4). The connection
establishes immediately but after cca 20 seconds apache (remoteproxy)
resets the connection to the local proxy, thus killing my SSH session.
Keepalives for the SSH session didn't help.

I tried raising the log level LogLevel debug in the general apache config,
but i'm not seeing any useful info.

Later on found out about trace1-8 debug levels but that ALSO doesn't show
anything. Using LogLevel warn proxy:trace6 proxy_connect:trace6. In packet
traces I'm just seeing sudden FIN/ACK from remoteproxy->destination and
RST/ACK from remoteproxy->localproxy. No mention of any proxy activity
inside /var/log/apache2. Only a single CONNECT line.


Any suggestions?

Thanks.

BR,
Vladimir