Re: [users@httpd] Updating to php 7.0 and having apache still work?

2018-09-28 Thread Frank Gingras
Consider the wiki article:

http://wiki.apache.org/httpd/php

On Fri, Sep 28, 2018 at 6:12 PM @lbutlr  wrote:

> Once again I have tried, and failed, to move from php 5.6 to php 7.0
> (using postmaster under FreeBSD 11.3-RELEASE). The results are largely the
> same, php pages don’t load either "Primary script unknown” or complaints
> about filter(0 (which is built in to both php56 and php70).
>
> I’m sure this is all my doing.
>
> So… is there a decent document or how-to or step-by-step on how to updated
> the php under apache without everything in apache breaking?
>
> (php itself works fine, it’s the integration with apache 2.24 that I keep
> managing to FUBAR. Currently on apache 2.4.35)
>
>
> --
> Otto: Apes don't read philosophy.
> Wanda: Yes, they do Otto, they just don't understand it.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


[users@httpd] Updating to php 7.0 and having apache still work?

2018-09-28 Thread @lbutlr
Once again I have tried, and failed, to move from php 5.6 to php 7.0 (using 
postmaster under FreeBSD 11.3-RELEASE). The results are largely the same, php 
pages don’t load either "Primary script unknown” or complaints about filter(0 
(which is built in to both php56 and php70).

I’m sure this is all my doing.

So… is there a decent document or how-to or step-by-step on how to updated the 
php under apache without everything in apache breaking?

(php itself works fine, it’s the integration with apache 2.24 that I keep 
managing to FUBAR. Currently on apache 2.4.35)


-- 
Otto: Apes don't read philosophy.
Wanda: Yes, they do Otto, they just don't understand it.



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



Re: [users@httpd] Connect mod_lbmethod_heartbeat to Tomcat

2018-09-28 Thread Googalar
I'm not expert on this but I did a quick search. Did you come across
this page in your research:
https://tomcat.apache.org/connectors-doc/webserver_howto/apache.html

Good Luck and let us know how this works out would you. I just leased
my first Tomcat (vps) and I need to establish comms between it and a
http server.
On Fri, Sep 28, 2018 at 2:29 PM Randelke Althor  wrote:
>
> Hey all,
>
> I'm new to server configurations and Apache, so I apologize if this is
> overly simplistic or an inappropriate place to ask this question.
>
> I have recently upgraded from Apache 2.2 to 2.4 and am looking into
> changing the proxy method used by the server from the basic mod_proxy
> to mod_lbmethod_heartbeat in mod_proxy_balancer. I am using an Apache
> Server as a proxy to send the requests to a number of Tomcat servers,
> and am unsure of the flow of how the heartbeat method is supposed to
> work.
>
> I've done my best to scour the Apache docs, and my current
> understanding of the process is the Apache Server should have a
> HeartMonitor listening for heartbeat info that will be sent to it by
> each of the other servers. These servers will have mod_heartbeat so
> they will know to send the information to the specified port. The
> Apache Server will then use this information to distribute the
> requests as best it can. Does this sound like the correct flow for how
> this method is supposed to work?
>
> If so, how would the mod_heartbeat be loaded onto and used by Tomcat?
> Both are Apache, but I have not been able to find any documentation on
> a method like this in Tomcat and that doesn't seem surprising to me
> since they are different servers and I imagine are implemented very
> differently. Is there some sort of connector that would let the two
> communicate in this way, or is mod_lbmethod_heartbeat supposed to only
> be used between multiple Apache Servers?
>
> Thanks in advance for any help you can give me in understanding this method!
> Luke DiGiacomo
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>

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



Re: [users@httpd] 403 error upon upgrade

2018-09-28 Thread Frank Gingras
There is no reference to "webdir" anywhere in your configuration, so you
effectively munged it to the point that we cannot help you.

Further, I would recommend setting AllowOverride none in every single
 block - the last thing you want is for a rogue .htaccess file
to interfere. If the sole purpose of said .htaccess file is to set up
permalinks, all you need is likely a single FallbackResource in the vhost
context instead.

Also, set the DirectoryIndex in the vhost context instead.

On Thu, Sep 27, 2018 at 1:29 PM Jack M. Nilles  wrote:

> Two days ago I upgraded my SUSE server. It serves three websites as
> virtual sites. All of the sites run php. Upon restarting apache 2.4 I got
> the following error message:
>
> [Wed Sep 26 07:36:55.666104 2018] [autoindex:error] [pid 12345] [client
> 1.2.3.4:50430] AH01276: Cannot serve directory /webdir/htdocs/: No
> matching DirectoryIndex (index.html,index.html.var) found, and
> server-generated directory index forbidden by Options directive
>
> I have visited many help pages and forums on apache, tried most of the
> suggested remedies, such as adding DirectoryIndex index.php, to no avail.
>
> Here is the code for one of the sites:
>
> 
>
>   ServerAdmin webmas...@site1.com
>   ServerName www.site1.com
>   ServerAlias site1.com *.site1.com
>   DocumentRoot "/home/sites/site1/htdocs"
>   SSLEngine on
>   SSLProtocol all -SSLv2
>   SSLCertificateFile /etc/apache2/ssl.crt/WWW.SITE1.COM.crt
>   SSLCertificateKeyFile /etc/apache2/ssl.key/www.site1.com.key
>   SSLCertificateChainFile /etc/apache2/ssl.crt/ov_chain.txt
>   RewriteEngine On
>   RewriteOptions Inherit
>
>  
>   DirectoryIndex index.php
> #  To make the blog work with pretty permalinks use the next 2 uncommented
> lines.
> #  Otherwise use 'Options None' and 'AllowOverride None'
>   Options FollowSymlinks
>   AllowOverride all
>   Require all granted
>  
>
>   AccessFileName .htaccess
>
>  ErrorLog /var/log/apache2/site1.com-error_log
>  CustomLog /var/log/apache2/site1.com-access_log combined
>
>  ScriptAlias /cgi-bin/ "/home/sites/site1/cgi-bin/"
>  
>   AllowOverride None
>   Options +ExecCGI -Includes
>   Require all granted
>  
>
> Include /etc/apache2/conf.d/*.conf
>
> 
>
> Adding the DirectoryIndex line has the strange result that, if I click
> twice on the site in a browser, the page gets downloaded but the error
> message remains!
>
> Any help would be appreciated. I have already spent two days in a
> fruitless search for a solution. The sites had worked perfectly before the
> "upgrade".
>
>


Re: [users@httpd] 403 error upon upgrade

2018-09-28 Thread Jack M . Nilles
Frank,

Sorry for the typos. I've corrected the code below to be consistent. The error 
message was, and is (I am anonymizing the directory details):

[Fri Sep 28 15:15:39.301689 2018] [autoindex:error] [pid 17591] [client 
1.2.3.4:45731] AH01276: Cannot serve directory /home/data/site1/htdocs/: No 
matching DirectoryIndex (index.html,index.html.var) found, and server-generated 
directory index forbidden by Options directive

Anywhere I put the DirectoryIndex line in the vhosts.conf file it results in 
apache downloading the html of the index page but not displaying it. So I've 
commented it out at present.

Please explain what you mean by 'vhost context'. I am unfamiliar with the 
FallbackResource directive.
Thanks for our help; I'm still head scratching here.

Jack Nilles

> On 28 Sep 2018, at 15:14, Frank Gingras  wrote:
> 
> There is no reference to "webdir" anywhere in your configuration, so you 
> effectively munged it to the point that we cannot help you.
> 
> Further, I would recommend setting AllowOverride none in every single 
>  block - the last thing you want is for a rogue .htaccess file to 
> interfere. If the sole purpose of said .htaccess file is to set up 
> permalinks, all you need is likely a single FallbackResource in the vhost 
> context instead.
> 
> Also, set the DirectoryIndex in the vhost context instead.
> 
> On Thu, Sep 27, 2018 at 1:29 PM Jack M. Nilles  > wrote:
> Two days ago I upgraded my SUSE server. It serves three websites as virtual 
> sites. All of the sites run php. Upon restarting apache 2.4 I got the 
> following error message:
> 
> [Wed Sep 26 07:36:55.666104 2018] [autoindex:error] [pid 12345] [client 
> 1.2.3.4:50430 ] AH01276: Cannot serve directory 
> /webdir/htdocs/: No matching DirectoryIndex (index.html,index.html.var) 
> found, and server-generated directory index forbidden by Options directive
> 
> I have visited many help pages and forums on apache, tried most of the 
> suggested remedies, such as adding DirectoryIndex index.php, to no avail.
> 
> Here is the vhosts.conf code for one of the sites:
> 
> http://1.2.3.4:443/>>
> 
>   ServerAdmin webmas...@site1.com 
>   ServerName www.site1.com 
>   ServerAlias site1.com  *.site1.com 
>   DocumentRoot "/home/data/site1/htdocs"
>   SSLEngine on
>   SSLProtocol all -SSLv2
>   SSLCertificateFile /etc/apache2/ssl.crt/WWW.SITE1.COM.crt 
> 
>   SSLCertificateKeyFile /etc/apache2/ssl.key/www.site1.com.key 
> 
>   SSLCertificateChainFile /etc/apache2/ssl.crt/ov_chain.txt
>   RewriteEngine On
>   RewriteOptions Inherit
# DirectoryIndex index.php
> 
>  
>   DirectoryIndex index.php
> #  To make the blog work with pretty permalinks use the next 2 uncommented 
> lines.
> #  Otherwise use 'Options None' and 'AllowOverride None'
>   Options FollowSymlinks
>   AllowOverride all
>   Require all granted
>  
> 
>   AccessFileName .htaccess
> 
>  ErrorLog /var/log/apache2/site1.com -error_log
>  CustomLog /var/log/apache2/site1.com -access_log combined
> 
>  ScriptAlias /cgi-bin/ "/home/data/site1/cgi-bin/"
>  
>   AllowOverride None
>   Options +ExecCGI -Includes
>   Require all granted
>  
> 
> Include /etc/apache2/conf.d/*.conf
> 
> 
> 
> Adding the DirectoryIndex line has the strange result that, if I click twice 
> on the site in a browser, the page gets downloaded but the error message 
> remains!
> 
> Any help would be appreciated. I have already spent two days in a fruitless 
> search for a solution. The sites had worked perfectly before the "upgrade".
> 



[users@httpd] Step-by-Step Tutorial: How to Setup Your Own e-Commerce Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) in Amazon AWS Cloud

2018-09-28 Thread Turritopsis Dohrnii Teo En Ming
Good morning from Singapore,


You can read my step-by-step tutorial on How to Setup Your Own e-Commerce 
Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) 
in Amazon AWS Cloud at any one of my two redundant blogs. My blogs were 
configured in RAID 1 mirroring array.


https://tdtemcerts.wordpress.com/2018/09/29/step-by-step-tutorial-how-to-setup-your-own-e-commerce-online-store-using-woocommerce-3-4-5-wordpress-4-9-8-and-centos-1805-lamp-in-amazon-aws-cloud/


https://tdtemcerts.blogspot.com/2018/09/step-by-step-tutorial-how-to-setup-your.html


Thanks for reading! If there are any mistakes, please do let me know!





===BEGIN SIGNATURE===

Turritopsis Dohrnii Teo En Ming's Academic Qualifications as at 30 Oct 2017

[1] https://tdtemcerts.wordpress.com/

[2] http://tdtemcerts.blogspot.sg/

[3] 
https://www.scribd.com/user/270125049/Teo-En-Ming

===END SIGNATURE===


Re: [users@httpd] virtual host

2018-09-28 Thread Sander Smeenk
Quoting Carmel NY (carmel...@outlook.com):
> This is my first attempt to set up a virtual host with apache24 on a
> FreeBSD 11.2 machine, and it is not working out so well.

Please elaborate on the 'not working out so well' bit.


> Assuming a site name of example.net, I tried to configure a simple vhost.
> 
> ServerAdmin webmas...@example.net
> DocumentRoot "/usr/local/www/testdir"
> ServerName stem.example.net:80

The port addition here is not needed and might interfere with your
configuration.


> ServerAlias www.stem.example.net
> ErrorLog "/var/log/stem.error.log"
> CustomLog "/var/log/stem.access.log" common
> 
> AcceptPathInfo On
> 
>   
> AllowOverride all
> Order Allow,Deny
> Allow from all
> # For Apache 2.4 add:
> Require all granted

Remove the 'Order' and 'Allow' lines if you're running Apache 2.4
Leave the 'Require all granted' line in that case.


>   
> 

Otherwise this vhost config looks just dandy!


> apachectl -S
> VirtualHost configuration:
> *:80   stem.example.net 
> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
> *:443  example.net 
> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)

It shows up here on port 80 too!


> Obviously, I am dong something wrong, but I have no idea what.

Please tell us what is not working for you!


Regards,
-Sndr.
-- 
| Why won't an answering machine ever answer any questions?
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2

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



[users@httpd] virtual host

2018-09-28 Thread Carmel NY
This is my first attempt to set up a virtual host with apache24 on a FreeBSD
11.2 machine, and it is not working out so well.

Assuming a site name of example.net, I tried to configure a simple vhost.


ServerAdmin webmas...@example.net
DocumentRoot "/usr/local/www/testdir"
ServerName stem.example.net:80
ServerAlias www.stem.example.net
ErrorLog "/var/log/stem.error.log"
CustomLog "/var/log/stem.access.log" common

AcceptPathInfo On

  
AllowOverride all
Order Allow,Deny
Allow from all
# For Apache 2.4 add:
Require all granted
  


>From the httpd.conf file:
# Virtual hosts
Include etc/apache24/extra/httpd-vhosts.conf

apachectl -S
VirtualHost configuration:
*:80   stem.example.net 
(/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
*:443  example.net 
(/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
ServerRoot: "/usr/local"
Main DocumentRoot: "/usr/local/www/apache24/data"
Main ErrorLog: "/var/log/httpd-error.log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
PidFile: "/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www" id=80
Group: name="www" id=80

Obviously, I am dong something wrong, but I have no idea what.

-- 
Carmel

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



Re: [users@httpd] virtual host

2018-09-28 Thread Sander Smeenk
Quoting Carmel NY (carmel...@outlook.com):

> >Please elaborate on the 'not working out so well' bit.

> >> apachectl -S
> >> VirtualHost configuration:
> >> *:80   stem.example.net 
> >> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
> >> *:443  example.net 
> >> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)  

> Okay, on a stock FreeBSD installation, maybe on others too, there is an
> index.html file in the document root that displays, "It Works" when it is
> access. Now, when I type in my normal web address; http://example.net, the
> vhost site is displayed. However, if I type in the vhost name;
> http://stem.example.net, the regular site is display; ie. "It Works". That
> is exactly opposite of what it is supposed to be doing. That make no sense,
> so I know that I am doing something really wrong.

This is Apache 2.4.x ?

I don't see the 'default server ...','ip.add.re.ss:port is a NameVirtualHost'
and 'alias'-lines in your 'apache2ctl -S' output.

Did you remove those yourself?  It always helps not to obfuscate your configs
and logs when seeking help.

# apache2ctl -S
VirtualHost configuration:
213.154.236.176:443is a NameVirtualHost
   default server www.freshdot.net 
(/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1)
   port 443 namevhost www.freshdot.net 
(/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1)
  alias freshdot.net
 [ .. ]
[2001:7b8:633:1:213:154:236:176]:443 is a NameVirtualHost
   default server www.freshdot.net 
(/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1)
   port 443 namevhost www.freshdot.net 
(/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1)
  alias freshdot.net

Apache will, by default, treat the first vhost definition it finds as
the default vhost for that IP/port combo. Try defining a simple vhost
before defining the stem.example.net vhost so that no longer is your
default vhost.

Regards,
-Sndr.
-- 
| Scenery is here, wish you were beautiful.
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2

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



[users@httpd] Connect mod_lbmethod_heartbeat to Tomcat

2018-09-28 Thread Randelke Althor
Hey all,

I'm new to server configurations and Apache, so I apologize if this is
overly simplistic or an inappropriate place to ask this question.

I have recently upgraded from Apache 2.2 to 2.4 and am looking into
changing the proxy method used by the server from the basic mod_proxy
to mod_lbmethod_heartbeat in mod_proxy_balancer. I am using an Apache
Server as a proxy to send the requests to a number of Tomcat servers,
and am unsure of the flow of how the heartbeat method is supposed to
work.

I've done my best to scour the Apache docs, and my current
understanding of the process is the Apache Server should have a
HeartMonitor listening for heartbeat info that will be sent to it by
each of the other servers. These servers will have mod_heartbeat so
they will know to send the information to the specified port. The
Apache Server will then use this information to distribute the
requests as best it can. Does this sound like the correct flow for how
this method is supposed to work?

If so, how would the mod_heartbeat be loaded onto and used by Tomcat?
Both are Apache, but I have not been able to find any documentation on
a method like this in Tomcat and that doesn't seem surprising to me
since they are different servers and I imagine are implemented very
differently. Is there some sort of connector that would let the two
communicate in this way, or is mod_lbmethod_heartbeat supposed to only
be used between multiple Apache Servers?

Thanks in advance for any help you can give me in understanding this method!
Luke DiGiacomo

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



Re: [users@httpd] virtual host

2018-09-28 Thread Ruben Safir
On 9/28/18 7:10 AM, Carmel NY wrote:
> Okay, on a stock FreeBSD installation, maybe on others too, there is an
> index.html file in the document root that displays,


In my experience you can't expect a stock instllation to work,
especially since you seem to be pointing at different directories that
the stock installation.  The biary might be find but you need to make
sure your set up conforms to the expectations of the binary or that your
apachectl is called correctly.

Don't be affarid to call your apache directly:
[www3 bin]# ./httpd -V
Server version: Apache/2.4.27 (Unix)
Server built:   Sep 30 2017 13:13:14
Server's Module Magic Number: 20120211:68
Server loaded:  APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.2, APR-UTIL 1.6.0
Architecture:   64-bit
Server MPM: prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
 -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 DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
[www3 bin]# ./httpd -l
Compiled in modules:
  core.c
  mod_so.c
  http_core.c
  prefork.c

./httpd -t


You also need to find your log files and tail them

tail -f /usr/local/apache/logs/*

On top of that, FWIW, virtual hosts are very dependent on fuinctioning
DNS, and your DNS is being setup dynamically with dynamicdns etc.  That
has often been a source of trouble, to say the least.

Ruben
-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

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



Re: [users@httpd] virtual host

2018-09-28 Thread Ruben Safir
On 9/28/18 5:21 AM, Sander Smeenk wrote:
> Quoting Carmel NY (carmel...@outlook.com):
>> This is my first attempt to set up a virtual host with apache24 on a
>> FreeBSD 11.2 machine, and it is not working out so well.
> 
> Please elaborate on the 'not working out so well' bit.
> 
> 
>> Assuming a site name of example.net, I tried to configure a simple vhost.
>> 
>> ServerAdmin webmas...@example.net
>> DocumentRoot "/usr/local/www/testdir"
>> ServerName stem.example.net:80
> 
> The port addition here is not needed and might interfere with your
> configuration.
> 
> 
>> ServerAlias www.stem.example.net
>> ErrorLog "/var/log/stem.error.log"
>> CustomLog "/var/log/stem.access.log" common
>>
>> AcceptPathInfo On
>>
>>   
>> AllowOverride all
>> Order Allow,Deny
>> Allow from all
>> # For Apache 2.4 add:
>> Require all granted
> 
> Remove the 'Order' and 'Allow' lines if you're running Apache 2.4
> Leave the 'Require all granted' line in that case.
> 
> 
>>   
>> 
> 
> Otherwise this vhost config looks just dandy!
> 
> 
>> apachectl -S
>> VirtualHost configuration:
>> *:80   stem.example.net 
>> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
>> *:443  example.net 
>> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
> 
> It shows up here on port 80 too!
> 
> 
>> Obviously, I am dong something wrong, but I have no idea what.
> 
> Please tell us what is not working for you!
> 
> 
> Regards,
> -Sndr.
> 


I think it is not reading from his specified directories which are
/usr/local/www

Sounds like hist apachectl is not reading the config file.

-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

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



Re: [users@httpd] virtual host

2018-09-28 Thread Ruben Safir
Sorry, I need to correct my English.  Seems my fingers don't find the
right keys all the time ;)


On 9/28/18 7:10 AM, Carmel NY wrote:
> Okay, on a stock FreeBSD installation, maybe on others too, there is an
> index.html file in the document root that displays,


In my experience you can't expect a stock instllation to work,
especially since you seem to be pointing at different directories than
the stock installation.

The biary might be fine but you need to make sure your set up conforms
to the expectations of the binary or that your apachectl is called
correctly.

Don't be affarid to call your apache directly:
[www3 bin]# ./httpd -V
Server version: Apache/2.4.27 (Unix)
Server built:   Sep 30 2017 13:13:14
Server's Module Magic Number: 20120211:68
Server loaded:  APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.2, APR-UTIL 1.6.0
Architecture:   64-bit
Server MPM: prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
 -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 DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
[www3 bin]# ./httpd -l
Compiled in modules:
  core.c
  mod_so.c
  http_core.c
  prefork.c

./httpd -t


You also need to find your log files and tail them

tail -f /usr/local/apache/logs/*

On top of that, FWIW, virtual hosts are very dependent on fuinctioning
DNS, and your DNS is being setup dynamically with dynamicdns etc.  That
has often been a source of trouble, to say the least.

Look, if it is real trouble, you can call me if you want on Sunday.

Ruben
-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

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

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



Re: [users@httpd] virtual host

2018-09-28 Thread Carmel NY
On Fri, 28 Sep 2018 15:40:49 +0200, Sander Smeenk stated:

>Quoting Carmel NY (carmel...@outlook.com):
>
>> >Please elaborate on the 'not working out so well' bit.  
>
>> >> apachectl -S
>> >> VirtualHost configuration:
>> >> *:80   stem.example.net
>> >> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
>> >> *:443  example.net
>> >> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
>
>> Okay, on a stock FreeBSD installation, maybe on others too, there is an
>> index.html file in the document root that displays, "It Works" when it is
>> access. Now, when I type in my normal web address; http://example.net, the
>> vhost site is displayed. However, if I type in the vhost name;
>> http://stem.example.net, the regular site is display; ie. "It Works". That
>> is exactly opposite of what it is supposed to be doing. That make no sense,
>> so I know that I am doing something really wrong.  
>
>This is Apache 2.4.x ?
>
>I don't see the 'default server ...','ip.add.re.ss:port is a NameVirtualHost'
>and 'alias'-lines in your 'apache2ctl -S' output.
>
>Did you remove those yourself?  It always helps not to obfuscate your configs
>and logs when seeking help.
>
># apache2ctl -S
>VirtualHost configuration:
>213.154.236.176:443is a NameVirtualHost
>   default server www.freshdot.net
> (/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1) port 443 namevhost
> www.freshdot.net (/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1)
> alias freshdot.net [ .. ]
>[2001:7b8:633:1:213:154:236:176]:443 is a NameVirtualHost
>   default server www.freshdot.net
> (/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1) port 443 namevhost
> www.freshdot.net (/etc/apache2/sites-enabled/01.www.freshdot.net.conf:1)
> alias freshdot.net
>
>Apache will, by default, treat the first vhost definition it finds as
>the default vhost for that IP/port combo. Try defining a simple vhost
>before defining the stem.example.net vhost so that no longer is your
>default vhost.
>
>Regards,
>-Sndr.

I don't have an "apache2ctl" program. I do have an "apachectl" one though.
This is my output:

apachectl -S
VirtualHost configuration:
*:80   stem.example.net (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
*:443  example.net (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
ServerRoot: "/usr/local"
Main DocumentRoot: "/usr/local/www/apache24/data"
Main ErrorLog: "/var/log/httpd-error.log"
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: "/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www" id=80
Group: name="www" id=80

httpd -V
Server version: Apache/2.4.35 (FreeBSD)
Server built:   unknown
Server's Module Magic Number: 20120211:82
Server loaded:  APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.3, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM: prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
 -D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
 -D AP_TYPES_CONFIG_FILE="etc/apache24/mime.types"
 -D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"


Now, in the httpd.conf file, I changed the "ServerName www.example.net:80" to
"ServerName example.net:80" and now the vhost appears to be working correctly.

So, it appears that my next challenge will be to get SSL working on the vhost.

Thanks for your help. I am sure I will be needing more shortly.

-- 
Carmel

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



Re: [users@httpd] virtual host

2018-09-28 Thread Carmel NY
On Fri, 28 Sep 2018 11:21:36 +0200, Sander Smeenk stated:

>Quoting Carmel NY (carmel...@outlook.com):
>> This is my first attempt to set up a virtual host with apache24 on a
>> FreeBSD 11.2 machine, and it is not working out so well.  
>
>Please elaborate on the 'not working out so well' bit.
>
>
>> Assuming a site name of example.net, I tried to configure a simple vhost.
>> 
>> ServerAdmin webmas...@example.net
>> DocumentRoot "/usr/local/www/testdir"
>> ServerName stem.example.net:80  
>
>The port addition here is not needed and might interfere with your
>configuration.
>
>
>> ServerAlias www.stem.example.net
>> ErrorLog "/var/log/stem.error.log"
>> CustomLog "/var/log/stem.access.log" common
>> 
>> AcceptPathInfo On
>> 
>>   
>> AllowOverride all
>> Order Allow,Deny
>> Allow from all
>> # For Apache 2.4 add:
>> Require all granted  
>
>Remove the 'Order' and 'Allow' lines if you're running Apache 2.4
>Leave the 'Require all granted' line in that case.
>
>
>>   
>>   
>
>Otherwise this vhost config looks just dandy!
>
>
>> apachectl -S
>> VirtualHost configuration:
>> *:80   stem.example.net
>> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
>> *:443  example.net
>> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)  
>
>It shows up here on port 80 too!
>
>
>> Obviously, I am dong something wrong, but I have no idea what.  
>
>Please tell us what is not working for you!

Okay, on a stock FreeBSD installation, maybe on others too, there is an
index.html file in the document root that displays, "It Works" when it is
access. Now, when I type in my normal web address; http://example.net, the
vhost site is displayed. However, if I type in the vhost name;
http://stem.example.net, the regular site is display; ie. "It Works". That
is exactly opposite of what it is supposed to be doing. That make no sense,
so I know that I am doing something really wrong.

My dns is handled by . This is an export of the settings:

$ORIGIN .
$TTL 86400
example.net IN SOA ns1153.dns.dyn.com. zone-admin.dyndns.com. (
 2018092719 ; serial number
 10800 ; refresh
 1800 ; update retry
 604800 ; expire
 1800 ; minimum
 )
 NS ns1153.dns.dyn.com.
 NS ns2173.dns.dyn.com.
 NS ns3176.dns.dyn.com.
 NS ns4139.dns.dyn.com.

google._domainkey.example.net. 600 IN TXT "v=DKIM1\; k=rsa\; 
p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCvIiRSLU6aPFuQ9vNjioVMLbJfHayAL9DNByMtJV3dKy0nckOMa0mhDEbnTg7/SNVwmgI8Wb0PY2FFsu2pGLJNFflOeSxV1w8Fs3JHbqhRmdH4da8Kzpwg17+ZwjHX1/0nELEkrNqKwa1Htj3apzbEJETCa7+Qp2qXxE84d3ZZmwIDAQAB"
scorpio.example.net. 600 IN A 174.109.224.43
example.net. 600 IN A 174.109.224.43
example.net. 600 IN TXT "v=spf1 include:_spf.google.com ~all"
example.net. 86400 IN MX 1 aspmx.l.google.com.
example.net. 86400 IN MX 10 alt3.aspmx.l.google.com.
example.net. 86400 IN MX 10 alt4.aspmx.l.google.com.
example.net. 86400 IN MX 5 alt1.aspmx.l.google.com.
example.net. 86400 IN MX 5 alt2.aspmx.l.google.com.
stem.example.net. 600 IN A 174.109.224.43
www.scorpio.example.net. 600 IN CNAME scorpio.example.net.
www.example.net. 600 IN CNAME example.net.
www.stem.example.net. 600 IN CNAME stem.example.net.

-- 
Carmel


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



[users@httpd] Reverse proxy to ntopng with Apache 2.4 on FreeBSD

2018-09-28 Thread users
Hi list, 
 
I am trying to get an Apache 2.4 reverse proxy to ntopng to work, but 
unfortunately without success yet. Hopefully you can provide some pointers.
 
It is a FreeBSD 11.2-RELEASE-p4 system:
user@system:user $ freebsd-version -u
11.2-RELEASE-p4
user@system:user $ freebsd-version -k
11.2-RELEASE-p4
 
Apache version and other info:
user@system:user $ httpd -V
Server version: Apache/2.4.35 (FreeBSD)
Server built:   unknown
Server's Module Magic Number: 20120211:82
Server loaded:  APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.3, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM: prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
-D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
-D AP_TYPES_CONFIG_FILE="etc/apache24/mime.types"
-D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"
 
Apache modules loaded:
user@system:user $ httpd -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
authz_host_module (shared)
authz_core_module (shared)
allowmethods_module (shared)
mime_module (shared)
log_config_module (shared)
expires_module (shared)
headers_module (shared)
proxy_module (shared)
proxy_http_module (shared)
mpm_prefork_module (shared)
unixd_module (shared)
status_module (shared)
info_module (shared)
dir_module (shared)
alias_module (shared)
rewrite_module (shared)
 
The ntopng specific config is:
   ProxyRequests off
   ProxyPreserveHost on
   ProxyPass /ntopng/ http://localhost:3000/ntopng/
   ProxyPassReverse /ntopng/ http://localhost:3000/ntopng/
 
   
  Require all granted
   
 
The ntopng version is:
user@system:user $ pkg info | grep ntopng
ntopng-3.6.d201800910,1Network monitoring tool with command line and 
web interfaces
 
ntopng is started with:
/usr/local/etc/ntopng.conf
-U ntopng
-G /var/run/ntopng/ntopng.pid
-1 /usr/local/share/ntopng/httpdocs
-2 /usr/local/share/ntopng/scripts
-3 /usr/local/share/ntop
--dns-mode 1
--http-port 3000
--http-prefix /ntopng
 
What is happening is that I get the ntopng login page when browsing to 
http://ntopngsystem.intra.domain.com/ntopng/. But after filling the username 
and password the login page stays.
 
The access log shows:
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/ HTTP/1.1" 302 -
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/lua/login.lua?referer=ntopngsystem.intra.domain.com/ HTTP/1.1" 200 5118
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/bootstrap/css/bootstrap-theme.css HTTP/1.1" 200 14939
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/bootstrap/css/bootstrap.css HTTP/1.1" 200 120067
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/rickshaw.css 
HTTP/1.1" 200 7309
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/dc.css HTTP/1.1" 200 
4109
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/font-awesome/css/font-awesome.css HTTP/1.1" 200 37414
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/flags.css HTTP/1.1" 
200 12737
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/jquery-ui.css 
HTTP/1.1" 200 37326
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/css/bootstrap-duallistbox.css HTTP/1.1" 200 1984
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/cal-heatmap.css 
HTTP/1.1" 200 1025
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/nv.d3.css HTTP/1.1" 
200 12015
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/pie-chart.css 
HTTP/1.1" 200 1003
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET /ntopng/css/bootstrap-slider.css 
HTTP/1.1" 200 7889
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/css/custom_theme.css?1538121830 HTTP/1.1" 200 570
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/css/bootstrap-datetimepicker.css HTTP/1.1" 200 9038
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/css/ntopng.css?1538121830 HTTP/1.1" 200 7228
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/js/ntop.min.js?1538121830 HTTP/1.1" 200 53260
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/css/bootstrap-nav-wizard.css HTTP/1.1" 200 2982
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/js/jquery_bootstrap.min.js?1538121830 HTTP/1.1" 200 801964
10.x.y.z - - [28/Sep/2018:11:22:47 +0200] "GET 
/ntopng/js/deps.min.js?1538121830 HTTP/1.1" 200 908406
10.x.y.z - - [28/Sep/2018:11:23:09 +0200] "POST /ntopng/authorize.html 
HTTP/1.1" 302 -
10.x.y.z - - [28/Sep/2018:11:23:09 +0200] "GET /ntopng/ HTTP/1.1" 302 -
10.x.y.z - - [28/Sep/2018:11:23:09 +0200] "GET /ntopng/lua/login.lua?referer= 
ntopngsystem.intra.domain.com/ 

Re: [users@httpd] virtual host

2018-09-28 Thread Carmel NY
On Fri, 28 Sep 2018 05:32:16 -0600, Jonathon Koyle stated:

>On Fri, Sep 28, 2018, 05:10 Carmel NY  wrote:
>
>> On Fri, 28 Sep 2018 11:21:36 +0200, Sander Smeenk stated:
>>
>> >Quoting Carmel NY (carmel...@outlook.com):
>> >> This is my first attempt to set up a virtual host with apache24 on a
>> >> FreeBSD 11.2 machine, and it is not working out so well.
>> >
>> >Please elaborate on the 'not working out so well' bit.
>> >
>> >
>> >> Assuming a site name of example.net, I tried to configure a simple
>> vhost.
>> >> 
>> >> ServerAdmin webmas...@example.net
>> >> DocumentRoot "/usr/local/www/testdir"
>> >> ServerName stem.example.net:80
>> >
>> >The port addition here is not needed and might interfere with your
>> >configuration.
>> >
>> >
>> >> ServerAlias www.stem.example.net
>> >> ErrorLog "/var/log/stem.error.log"
>> >> CustomLog "/var/log/stem.access.log" common
>> >>
>> >> AcceptPathInfo On
>> >>
>> >>   
>> >> AllowOverride all
>> >> Order Allow,Deny
>> >> Allow from all
>> >> # For Apache 2.4 add:
>> >> Require all granted
>> >
>> >Remove the 'Order' and 'Allow' lines if you're running Apache 2.4
>> >Leave the 'Require all granted' line in that case.
>> >
>> >
>> >>   
>> >> 
>> >
>> >Otherwise this vhost config looks just dandy!
>> >
>> >
>> >> apachectl -S
>> >> VirtualHost configuration:
>> >> *:80   stem.example.net
>> >> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
>> >> *:443  example.net
>> >> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
>> >
>> >It shows up here on port 80 too!
>> >
>> >
>> >> Obviously, I am dong something wrong, but I have no idea what.
>> >
>> >Please tell us what is not working for you!
>>
>> Okay, on a stock FreeBSD installation, maybe on others too, there is an
>> index.html file in the document root that displays, "It Works" when it is
>> access. Now, when I type in my normal web address; http://example.net, the
>> vhost site is displayed. However, if I type in the vhost name;
>> http://stem.example.net, the regular site is display; ie. "It Works". That
>> is exactly opposite of what it is supposed to be doing. That make no sense,
>> so I know that I am doing something really wrong.
>>
>> My dns is handled by . This is an export of the settings:
>>
>> $ORIGIN .
>> $TTL 86400
>> example.net IN SOA ns1153.dns.dyn.com. zone-admin.dyndns.com. (
>>  2018092719 ; serial number
>>  10800 ; refresh
>>  1800 ; update retry
>>  604800 ; expire
>>  1800 ; minimum
>>  )
>>  NS ns1153.dns.dyn.com.
>>  NS ns2173.dns.dyn.com.
>>  NS ns3176.dns.dyn.com.
>>  NS ns4139.dns.dyn.com.
>>
>> google._domainkey.example.net. 600 IN TXT "v=DKIM1\; k=rsa\;
>> p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCvIiRSLU6aPFuQ9vNjioVMLbJfHayAL9DNByMtJV3dKy0nckOMa0mhDEbnTg7/SNVwmgI8Wb0PY2FFsu2pGLJNFflOeSxV1w8Fs3JHbqhRmdH4da8Kzpwg17+ZwjHX1/0nELEkrNqKwa1Htj3apzbEJETCa7+Qp2qXxE84d3ZZmwIDAQAB"
>> scorpio.example.net. 600 IN A 174.109.224.43
>> example.net. 600 IN A 174.109.224.43
>> example.net. 600 IN TXT "v=spf1 include:_spf.google.com ~all"
>> example.net. 86400 IN MX 1 aspmx.l.google.com.
>> example.net. 86400 IN MX 10 alt3.aspmx.l.google.com.
>> example.net. 86400 IN MX 10 alt4.aspmx.l.google.com.
>> example.net. 86400 IN MX 5 alt1.aspmx.l.google.com.
>> example.net. 86400 IN MX 5 alt2.aspmx.l.google.com.
>> stem.example.net. 600 IN A 174.109.224.43
>> www.scorpio.example.net. 600 IN CNAME scorpio.example.net.
>> www.example.net. 600 IN CNAME example.net.
>> www.stem.example.net. 600 IN CNAME stem.example.net.
>>
>I wonder if the :80 in the ServerName directive is causing you grief, since
>it isn't passed that way for http?

I doubt it. As suggested earlier, I removed it from the configuration.

-- 
Carmel


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



Re: [users@httpd] virtual host

2018-09-28 Thread Jonathon Koyle
I wonder if the :80 in the ServerName directive is causing you grief, since
it isn't passed that way for http?

On Fri, Sep 28, 2018, 05:10 Carmel NY  wrote:

> On Fri, 28 Sep 2018 11:21:36 +0200, Sander Smeenk stated:
>
> >Quoting Carmel NY (carmel...@outlook.com):
> >> This is my first attempt to set up a virtual host with apache24 on a
> >> FreeBSD 11.2 machine, and it is not working out so well.
> >
> >Please elaborate on the 'not working out so well' bit.
> >
> >
> >> Assuming a site name of example.net, I tried to configure a simple
> vhost.
> >> 
> >> ServerAdmin webmas...@example.net
> >> DocumentRoot "/usr/local/www/testdir"
> >> ServerName stem.example.net:80
> >
> >The port addition here is not needed and might interfere with your
> >configuration.
> >
> >
> >> ServerAlias www.stem.example.net
> >> ErrorLog "/var/log/stem.error.log"
> >> CustomLog "/var/log/stem.access.log" common
> >>
> >> AcceptPathInfo On
> >>
> >>   
> >> AllowOverride all
> >> Order Allow,Deny
> >> Allow from all
> >> # For Apache 2.4 add:
> >> Require all granted
> >
> >Remove the 'Order' and 'Allow' lines if you're running Apache 2.4
> >Leave the 'Require all granted' line in that case.
> >
> >
> >>   
> >> 
> >
> >Otherwise this vhost config looks just dandy!
> >
> >
> >> apachectl -S
> >> VirtualHost configuration:
> >> *:80   stem.example.net
> >> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
> >> *:443  example.net
> >> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
> >
> >It shows up here on port 80 too!
> >
> >
> >> Obviously, I am dong something wrong, but I have no idea what.
> >
> >Please tell us what is not working for you!
>
> Okay, on a stock FreeBSD installation, maybe on others too, there is an
> index.html file in the document root that displays, "It Works" when it is
> access. Now, when I type in my normal web address; http://example.net, the
> vhost site is displayed. However, if I type in the vhost name;
> http://stem.example.net, the regular site is display; ie. "It Works". That
> is exactly opposite of what it is supposed to be doing. That make no sense,
> so I know that I am doing something really wrong.
>
> My dns is handled by . This is an export of the settings:
>
> $ORIGIN .
> $TTL 86400
> example.net IN SOA ns1153.dns.dyn.com. zone-admin.dyndns.com. (
>  2018092719 ; serial number
>  10800 ; refresh
>  1800 ; update retry
>  604800 ; expire
>  1800 ; minimum
>  )
>  NS ns1153.dns.dyn.com.
>  NS ns2173.dns.dyn.com.
>  NS ns3176.dns.dyn.com.
>  NS ns4139.dns.dyn.com.
>
> google._domainkey.example.net. 600 IN TXT "v=DKIM1\; k=rsa\;
> p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCvIiRSLU6aPFuQ9vNjioVMLbJfHayAL9DNByMtJV3dKy0nckOMa0mhDEbnTg7/SNVwmgI8Wb0PY2FFsu2pGLJNFflOeSxV1w8Fs3JHbqhRmdH4da8Kzpwg17+ZwjHX1/0nELEkrNqKwa1Htj3apzbEJETCa7+Qp2qXxE84d3ZZmwIDAQAB"
> scorpio.example.net. 600 IN A 174.109.224.43
> example.net. 600 IN A 174.109.224.43
> example.net. 600 IN TXT "v=spf1 include:_spf.google.com ~all"
> example.net. 86400 IN MX 1 aspmx.l.google.com.
> example.net. 86400 IN MX 10 alt3.aspmx.l.google.com.
> example.net. 86400 IN MX 10 alt4.aspmx.l.google.com.
> example.net. 86400 IN MX 5 alt1.aspmx.l.google.com.
> example.net. 86400 IN MX 5 alt2.aspmx.l.google.com.
> stem.example.net. 600 IN A 174.109.224.43
> www.scorpio.example.net. 600 IN CNAME scorpio.example.net.
> www.example.net. 600 IN CNAME example.net.
> www.stem.example.net. 600 IN CNAME stem.example.net.
>
> --
> Carmel
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] virtual host

2018-09-28 Thread Jonathon Koyle
Oh, I missed that my first time through.  Is there anything in the log
files that you specify in the virtual host?

On Fri, Sep 28, 2018, 05:51 Carmel NY  wrote:

> On Fri, 28 Sep 2018 05:32:16 -0600, Jonathon Koyle stated:
>
> >On Fri, Sep 28, 2018, 05:10 Carmel NY  wrote:
> >
> >> On Fri, 28 Sep 2018 11:21:36 +0200, Sander Smeenk stated:
> >>
> >> >Quoting Carmel NY (carmel...@outlook.com):
> >> >> This is my first attempt to set up a virtual host with apache24 on a
> >> >> FreeBSD 11.2 machine, and it is not working out so well.
> >> >
> >> >Please elaborate on the 'not working out so well' bit.
> >> >
> >> >
> >> >> Assuming a site name of example.net, I tried to configure a simple
> >> vhost.
> >> >> 
> >> >> ServerAdmin webmas...@example.net
> >> >> DocumentRoot "/usr/local/www/testdir"
> >> >> ServerName stem.example.net:80
> >> >
> >> >The port addition here is not needed and might interfere with your
> >> >configuration.
> >> >
> >> >
> >> >> ServerAlias www.stem.example.net
> >> >> ErrorLog "/var/log/stem.error.log"
> >> >> CustomLog "/var/log/stem.access.log" common
> >> >>
> >> >> AcceptPathInfo On
> >> >>
> >> >>   
> >> >> AllowOverride all
> >> >> Order Allow,Deny
> >> >> Allow from all
> >> >> # For Apache 2.4 add:
> >> >> Require all granted
> >> >
> >> >Remove the 'Order' and 'Allow' lines if you're running Apache 2.4
> >> >Leave the 'Require all granted' line in that case.
> >> >
> >> >
> >> >>   
> >> >> 
> >> >
> >> >Otherwise this vhost config looks just dandy!
> >> >
> >> >
> >> >> apachectl -S
> >> >> VirtualHost configuration:
> >> >> *:80   stem.example.net
> >> >> (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
> >> >> *:443  example.net
> >> >> (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
> >> >
> >> >It shows up here on port 80 too!
> >> >
> >> >
> >> >> Obviously, I am dong something wrong, but I have no idea what.
> >> >
> >> >Please tell us what is not working for you!
> >>
> >> Okay, on a stock FreeBSD installation, maybe on others too, there is an
> >> index.html file in the document root that displays, "It Works" when it
> is
> >> access. Now, when I type in my normal web address; http://example.net,
> the
> >> vhost site is displayed. However, if I type in the vhost name;
> >> http://stem.example.net, the regular site is display; ie. "It Works".
> That
> >> is exactly opposite of what it is supposed to be doing. That make no
> sense,
> >> so I know that I am doing something really wrong.
> >>
> >> My dns is handled by . This is an export of the settings:
> >>
> >> $ORIGIN .
> >> $TTL 86400
> >> example.net IN SOA ns1153.dns.dyn.com. zone-admin.dyndns.com. (
> >>  2018092719 ; serial number
> >>  10800 ; refresh
> >>  1800 ; update retry
> >>  604800 ; expire
> >>  1800 ; minimum
> >>  )
> >>  NS ns1153.dns.dyn.com.
> >>  NS ns2173.dns.dyn.com.
> >>  NS ns3176.dns.dyn.com.
> >>  NS ns4139.dns.dyn.com.
> >>
> >> google._domainkey.example.net. 600 IN TXT "v=DKIM1\; k=rsa\;
> >>
> p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCvIiRSLU6aPFuQ9vNjioVMLbJfHayAL9DNByMtJV3dKy0nckOMa0mhDEbnTg7/SNVwmgI8Wb0PY2FFsu2pGLJNFflOeSxV1w8Fs3JHbqhRmdH4da8Kzpwg17+ZwjHX1/0nELEkrNqKwa1Htj3apzbEJETCa7+Qp2qXxE84d3ZZmwIDAQAB"
> >> scorpio.example.net. 600 IN A 174.109.224.43
> >> example.net. 600 IN A 174.109.224.43
> >> example.net. 600 IN TXT "v=spf1 include:_spf.google.com ~all"
> >> example.net. 86400 IN MX 1 aspmx.l.google.com.
> >> example.net. 86400 IN MX 10 alt3.aspmx.l.google.com.
> >> example.net. 86400 IN MX 10 alt4.aspmx.l.google.com.
> >> example.net. 86400 IN MX 5 alt1.aspmx.l.google.com.
> >> example.net. 86400 IN MX 5 alt2.aspmx.l.google.com.
> >> stem.example.net. 600 IN A 174.109.224.43
> >> www.scorpio.example.net. 600 IN CNAME scorpio.example.net.
> >> www.example.net. 600 IN CNAME example.net.
> >> www.stem.example.net. 600 IN CNAME stem.example.net.
> >>
> >I wonder if the :80 in the ServerName directive is causing you grief,
> since
> >it isn't passed that way for http?
>
> I doubt it. As suggested earlier, I removed it from the configuration.
>
> --
> Carmel
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Get request of large file size greater than 100KB

2018-09-28 Thread William A Rowe Jr
I've looked at the httpd and apr code, what source package were you using
which started from a default MAX_IOVEC_TO_WRITE (APR_MAX_IOVEC_SIZE?) of 6?

TIA,

Bill

On Thu, Sep 27, 2018 at 11:59 AM Hemant Chaudhary <
hemantdude.chaudh...@gmail.com> wrote:

> Hi,
>
> I have solved the problem by changing MAX_IOVEC_TO_WRITE value to 6 from
> 16. Now maximum data will be 8KB*6=48KB, which is less than writev max
> limit of 52KB.
>
> Thanks
> Hemant
>
> On Thu, Sep 27, 2018 at 7:56 PM Googalar 
> wrote:
>
>> Perhaps this thread will help you out...
>>
>> https://stackoverflow.com/questions/33811543/php-and-mod-fcgid-ap-pass-brigade-failed-in-handle-request-ipc-function#
>> On Thu, Sep 27, 2018 at 1:15 AM Hemant Chaudhary
>>  wrote:
>> >
>> > Hi All,
>> >
>> > I am trying to access large file(get request) of large file. This is
>> working properly if size of file is less than 52KB. But size greater than
>> 52KB is giving me error 4022.
>> >
>> > I have debugged and come to know that writev function can write maximum
>> upto 52KB only. Therefore I changed the default value of
>> THRESOLD_MAX_BUFFER to 42KB so that my writev will not reach to 52KB.
>> THRESOLD_MAX_BUFFER to 42KB helps me to solve the issue for PUT request.
>> >
>> > But in get request while accessing large file, size of brigade crosses
>> 52KB. As 52KB is greater than THRESOLD_MAX_BUFFER(42KB). It is trying to
>> flush the data. But limit of writev on my OS is maximum 52KB only.
>> Therefore it is giving 4022 error.
>> >
>> > Is there any way where I can control apache so that size of brigade
>> will never cross 52KB? or any other approach/ configuration parameter can
>> be used to solve this issue ?
>> >
>> > Thanks
>> > Hemant
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>