Re: [users@httpd] Header directive to enable Cross Origin Resource Sharing

2017-07-19 Thread Eric Covener
On Wed, Jul 19, 2017 at 9:30 AM, Sailaja Gadireddy
 wrote:
> Hello Team,
>
> Could you please assist me in adding Header directive in httpd.conf file?
> Where I can add the below configuration in the file?
>
> Header  set Access-Control-Allow-Origin "*"

The bottom? Anywhere you want?

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



[users@httpd] Header directive to enable Cross Origin Resource Sharing

2017-07-19 Thread Sailaja Gadireddy
Hello Team,

Could you please assist me in adding Header directive in httpd.conf file?
Where I can add the below configuration in the file?

Header  set Access-Control-Allow-Origin "*"

Thanks & Regards,
Sailaja.


Re: [users@httpd] Apache 2.4 access control question

2017-07-19 Thread Marat Khalili

On 19/07/17 02:02, Jason Brooks wrote:
The same thing happens if I don’t use a .htaccess file but instead 
define a  section in my apache config.

What happens if you try ?

--

With Best Regards,
Marat Khalili

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



Re: [users@httpd] Apache 2.4 access control question

2017-07-19 Thread Daniel
Why use. htaceess at all? And why not just:


Require ip 192.168 172.16




El 19 jul. 2017 1:02 a. m., "Jason Brooks"  escribió:

> Hello,
>
> This is on a ubuntu 16.04 LTS system running apache 2.4.18 (mpm_event)
> with php 7.0 running in php-fpm mode.
>
> I wish to completely block access to a directory in my document root
> except to a set of ip addresses but it’s not working and I am trying to
> figure out what is happening.
>
> My .htaccess settings only seem to apply when only accessing the
> directory, but not when I access a file IN that directory.
>
> Is there a setting that allows access to files if explicitly referenced to
> in the url?
>
> Here are my tests:
> Directory name: /opcache
> .htaccess contents: “require all denied”
>
> access to https:///opcache is forbidden (OK!)
>
> access to https”///opcache/test.php is allowed. (What?)
>
> The same thing happens if I don’t use a .htaccess file but instead define
> a  section in my apache config.
>
> Why would this happen?
>
> —jason
>
> Jason Brooks Systems Administrator
> eROI Performance is Art.
>
> m: 505 nw couch #300 w: eroi.com
> t: 503.290.3105 <(503)%20290-3105> f: 503.228.4249 <(503)%20228-4249>
>
>
> fb: fb.com/eROI 
>
>
>
>
>
>
>
>
>


Re: [users@httpd] 2.4.27 installed, no con fig change, but web site down!

2017-07-19 Thread Luca Toscano
Hi Tom,

2017-07-19 3:33 GMT+02:00 Tom Browder :

> I installed 2.4.27, along with the latest openssl. no config was changed,
> but my server isn't serving.
>
> I show no errors in the error log.
>
> I will try to go back to previous versions to see if I can recover, but
> wonder if anyone can guess what has happened.
>

you'd need to provide more info to get help, your description is really
generic. For example:

1) What was the previous version of httpd and openssl?
2) How did you upgrade? Was it manually or via distribution upgrade? Did
you test it before?
3) What do you mean with "my server isn't serving" ? Are requests timing
out? Are they returning 503s? Are all of them failing or only some of them?
4) What is your httpd configuration?

I could go ahead with other questions but you have probably got what we'd
need to help :)

Thanks!

Luca