.htaccess files not working from internet? intranet access fine

.htaccess files not working from internet? intranet access fine

am 11.10.2009 23:57:20 von Kaya Saman

Hi,

this is my first post here :-)

basically I have google'd this issue a bit and finally realized that
there was no viable solution that I could deduce results from!

I have a few servers running apache and some folders which have
..htaccess files in them, I can access these from any network inside the
NAT of my router however when it comes down to external access from
outside the NAT I always get permission denied; authorized access only??

My systems are behind a reverse proxy handled by Squid but also after
Google'ing found that Squid doesn't care about .htaccess and doesn't
even know what it is.

Another page I read claimed that it could be an issue of IPS protection
system in the firewall - however iptables doesn't contain any config
only default and isn't even running I think only in conjunction with
fail2ban to prevent DoS attacks. My router, a Cisco 857W, also doesn't
have IPS at all and IDS isn't enabled.

Can anyone help me find a solution to this situation?? I have checked
the logs for httpd/access_log and error_log only to find nothing
mentioned about denying anything.....

Any recommendations are appreciated! Thanks

An example of one config file which is the config from Munin is here:

[code]
ScriptAlias /munin/cgi/ /var/www/munin/cgi/
#
# Options ExecCGI
# SSLRequireSSL
# order deny,allow
# deny from all
# AuthType Basic
# AuthUserFile /site/cfg/passwd
# AuthGroupFile /site/cfg/group
# AuthName "munin"
# require group munin
# Satisfy Any
#

#
Alias /munin/ /var/www/munin/

Options None
# SSLRequireSSL
order deny,allow
deny from all
AuthType Basic
# AuthUserFile /site/cfg/passwd
AuthUserFile /var/http-passwords
# AuthGroupFile /site/cfg/group
#AuthGroupFile /var/http-group
# AuthName "munin"
AuthName "Restricted Files"
# require group munin
Require user admin
Satisfy Any

[/code]

I followed the .htaccess example from the apache.org website and have a
single file where password/username is stored for multiple pages.....

Kaya

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranet access fine

am 12.10.2009 01:19:20 von shimmyshack

SXMgeW91ciBzcXVpZCBwcm94eSBzZXQgdXAgdG8gZm9yd2F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cXVpcmUgdXNl ciBhZG1pbg0KICAg
U2F0aXNmeSBBbnkNCjwvRGlyZWN0b3J5Pg0KWy9jb2RlXQ0KDQpJIGZvbGxv d2VkIHRoZSAuaHRh
Y2Nlc3MgZXhhbXBsZSBmcm9tIHRoZSBhcGFjaGUub3JnIHdlYnNpdGUgYW5k IGhhdmUgYSANCnNp
bmdsZSBmaWxlIHdoZXJlIHBhc3N3b3JkL3VzZXJuYW1lIGlzIHN0b3JlZCBm b3IgbXVsdGlwbGUg
cGFnZXMuLi4uLg0KDQpLYXlhDQoNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KVGhlIG9mZmlj aWFsIFVzZXItVG8t
VXNlciBzdXBwb3J0IGZvcnVtIG9mIHRoZSBBcGFjaGUgSFRUUCBTZXJ2ZXIg UHJvamVjdC4NClNl
ZSA8VVJMOmh0dHA6Ly9odHRwZC5hcGFjaGUub3JnL3VzZXJzbGlzdC5odG1s PiBmb3IgbW9yZSBp
bmZvLg0KVG8gdW5zdWJzY3JpYmUsIGUtbWFpbDogdXNlcnMtdW5zdWJzY3Jp YmVAaHR0cGQuYXBh
Y2hlLm9yZw0KICAgIiAgIGZyb20gdGhlIGRpZ2VzdDogdXNlcnMtZGlnZXN0 LXVuc3Vic2NyaWJl
QGh0dHBkLmFwYWNoZS5vcmcNCkZvciBhZGRpdGlvbmFsIGNvbW1hbmRzLCBl LW1haWw6IHVzZXJz
LWhlbHBAaHR0cGQuYXBhY2hlLm9yZw0KDQo=

Re: .htaccess files not working from internet? intranetaccess fine

am 12.10.2009 01:28:41 von Kaya Saman

matt farey wrote:
> Is your squid proxy set up to forward on the basic authentication headers? Doesn't sound like they are being sent to your browser
>
>
> Sent from my BlackBerry® wireless device
>
>
Many thanks for the response! Is this the line I should be looking at in
Squid:

#auth_param basic realm Squid proxy-caching web server

uncomment then restart squid???



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranet access fine

am 12.10.2009 01:31:26 von Scott Haneda

On Oct 11, 2009, at 2:57 PM, Kaya Saman wrote:

> I have a few servers running apache and some folders which
> have .htaccess files in them, I can access these from any network
> inside the NAT of my router however when it comes down to external
> access from outside the NAT I always get permission denied;
> authorized access only??

Sounds to me like this is a DNS issue.

> My systems are behind a reverse proxy handled by Squid but also
> after Google'ing found that Squid doesn't care about .htaccess and
> doesn't even know what it is.

Squid probably does not play a role in this.

> Another page I read claimed that it could be an issue of IPS
> protection system in the firewall - however iptables doesn't contain
> any config only default and isn't even running I think only in
> conjunction with fail2ban to prevent DoS attacks. My router, a Cisco
> 857W, also doesn't have IPS at all and IDS isn't enabled.

I doubt that is related, though possible, my gut tells me it is simpler.

> Can anyone help me find a solution to this situation?? I have
> checked the logs for httpd/access_log and error_log only to find
> nothing mentioned about denying anything.....

If you can load a hostname from within your network, yet not outside,
that would tell me that when you are inside the network, the
resolution of that hostname is turning up an IP that apache is happy
to serve the results for. When you are outside the network, that
hostname is not the same IP as what is returned when you are inside
the network.

> Any recommendations are appreciated! Thanks


I would run DNS lookups under both conditions. To keep it simple, if
your Web site you are trying to access is example.com, from the
working case, inside your network, open a terminal and run:
dig example.com A

Look for the result of the A record, and what IP address is is showing.

Now, go to the outside network where this is not working, and run the
same dig command. I suspect you will find there is a different IP
address being returned. If you are not seeing any hits to the
acces_log and error_log when outside the local network, it more than
likely means you are simply not reaching the machine you think you are.

However, you mention you get an access denied error, can you tell us
specifically what that error is, is it page 404 not found? What is
the http response code?

I do not see a Virtual Host container in your sample config you sent
in, you probably just need to set one up for the host you are trying
to reach.

Here is how I generally do it:
# START example.com

DocumentRoot "/var/www/munin"
ServerName example.com
ServerAlias www.example.com
DirectoryIndex index.html index.htm


Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all


# END example.com

--
Scott * If you contact me off list replace talklists@ with scott@ *


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccess fine

am 12.10.2009 01:38:35 von Kaya Saman

Scott Haneda wrote:
> On Oct 11, 2009, at 2:57 PM, Kaya Saman wrote:
>
>>
>
> Sounds to me like this is a DNS issue.

DNS is fine :-) URL's resolve no probs

>
>
> Squid probably does not play a role in this.

hmm.... that's exactly what I read but having slight second thoughts now!

>
>
> However, you mention you get an access denied error, can you tell us
> specifically what that error is, is it page 404 not found? What is
> the http response code?
>
>
There isn't an error as such it just doesn't let me in!!!

The browser goes directly back to password/uname input prompt after
values inputted?? Inside is ok let's me in but outside is issue... same
URLs as my internal DNS matches external DNS.

Also am in another country right now from the network so am having to
use combination of ssh and web to check stuff.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranet access fine

am 12.10.2009 01:43:10 von Scott Haneda

On Oct 11, 2009, at 4:38 PM, Kaya Saman wrote:

> There isn't an error as such it just doesn't let me in!!!

Ahh, I think I see better what you are up against now.

> The browser goes directly back to password/uname input prompt after
> values inputted?? Inside is ok let's me in but outside is issue...
> same URLs as my internal DNS matches external DNS.
>
> Also am in another country right now from the network so am having
> to use combination of ssh and web to check stuff.


If you remove the http password parts from your config, do things
start to work for you?
--
Scott * If you contact me off list replace talklists@ with scott@ *


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccess fine

am 12.10.2009 01:45:38 von Kaya Saman

Scott Haneda wrote:
> On Oct 11, 2009, at 4:38 PM, Kaya Saman wrote:
>
>> There isn't an error as such it just doesn't let me in!!!
>
> Ahh, I think I see better what you are up against now.
>
>> The browser goes directly back to password/uname input prompt after
>> values inputted?? Inside is ok let's me in but outside is issue...
>> same URLs as my internal DNS matches external DNS.
>>
>> Also am in another country right now from the network so am having to
>> use combination of ssh and web to check stuff.
>
>
> If you remove the http password parts from your config, do things
> start to work for you?

Yes then it works no probs :-)

Internally is ok too with htaccess enabled (sorry if said this multiple
times) - when I left the network everything was fine internally but now
that I'm on the otherside of the fishbowl things are a bit different....

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccess fine

am 12.10.2009 02:38:18 von Kaya Saman

>>
>>
>> If you remove the http password parts from your config, do things
>> start to work for you?
>
> Yes then it works no probs :-)

Sorry if was unclear on this....

I can access the pages but then I have no security as .htaccess becomes
disabled!

Any thing else which can help me??

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccess fine

am 13.10.2009 10:02:52 von Kaya Saman

Hi guys,

sorry don't mean to be pushy or hasty but has anyone any idea of why my
security within .htaccess isn't working through the internet???

I kinda got some responses which at least I think helped identify the
problem more specifically but nothing to solve my issues... :-(

Thanks again, I do respect the fact that everyone has jobs and lives
which is why I waited till now as I assume the thread has got stale??

Many thanks for any solutions or probably ones ;-)

regards,

Kaya

Kaya Saman wrote:
>
>>>
>>>
>>> If you remove the http password parts from your config, do things
>>> start to work for you?
>>
>> Yes then it works no probs :-)
>
> Sorry if was unclear on this....
>
> I can access the pages but then I have no security as .htaccess
> becomes disabled!
>
> Any thing else which can help me??
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccess fine

am 13.10.2009 10:35:45 von shimmyshack

RGlkIHlvdSBldmVyIGludmVzdGlnYXRlIHRoZSByZXNwb25zZSBoZWFkZXJz IG9yIGxvb2t1cCBi
YXNpYyBhdXRoIGluIHNxdWlkPw0KU2VudCBmcm9tIG15IEJsYWNrQmVycnmu IHdpcmVsZXNzIGRl
dmljZQ0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogS2F5 YSBTYW1hbiA8U2Ft
YW5LYXlhQG5ldHNjYXBlLm5ldD4NCkRhdGU6IFR1ZSwgMTMgT2N0IDIwMDkg MTE6MDI6NTIgDQpU
bzogPHVzZXJzQGh0dHBkLmFwYWNoZS5vcmc+DQpTdWJqZWN0OiBSZTogW3Vz ZXJzQGh0dHBkXSAu
aHRhY2Nlc3MgZmlsZXMgbm90IHdvcmtpbmcgZnJvbSBpbnRlcm5ldD8gaW50 cmFuZXQNCiBhY2Nl
c3MgZmluZQ0KSGkgZ3V5cywNCg0Kc29ycnkgZG9uJ3QgbWVhbiB0byBiZSBw dXNoeSBvciBoYXN0
eSBidXQgaGFzIGFueW9uZSBhbnkgaWRlYSBvZiB3aH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kLmFwYWNoZS5vcmcNCkZvciBhZGRpdGlvbmFs IGNvbW1hbmRzLCBl
LW1haWw6IHVzZXJzLWhlbHBAaHR0cGQuYXBhY2hlLm9yZw0KDQo=

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 10:45:01 von Kaya Saman

matt farey wrote:
> Did you ever investigate the response headers or lookup basic auth in squid?
> Sent from my BlackBerry® wireless device
>
>
Thanks for the response Matt!!

I haven't checked the headers so will need to run Wireshark on it.

Checked out basic auth in Squid and posted a line of conf which I
thought was viable:

#auth_param basic realm Squid proxy-caching web server

after restarting however I got the same issue.

When I get back later I'll do more Google'ing on it as I have to run out
now as meeting for a job interview (currently transitioning between
ex-student and IT/networking proffessional (make that junior))!!

I think output from Wireshark will help you guys help me out more
provided I don't get the issue fixed before hand :-)

Thanks again for the response!!

Regards,

Kaya


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet?

am 13.10.2009 11:08:58 von Dick Davies

What's in the error/access logs on apache, Kaya?

That should tell you whether it's apache blocking the request, or Squid.

On Tue, Oct 13, 2009 at 9:45 AM, Kaya Saman wrote:
> matt farey wrote:
>>
>> Did you ever investigate the response headers or lookup basic auth in
>> squid?
>> Sent from my BlackBerry=AE wireless device
>>
>
> Thanks for the response Matt!!
>
> I haven't checked the headers so will need to run Wireshark on it.
>
> Checked out basic auth in Squid and posted a line of conf which I thought
> was viable:
>
> #auth_param basic realm Squid proxy-caching web server
>
> after restarting however I got the same issue.
>
> When I get back later I'll do more Google'ing on it as I have to run out =
now
> as meeting for a job interview (currently transitioning between ex-studen=
t
> and IT/networking proffessional (make that junior))!!
>
> I think output from Wireshark will help you guys help me out more provide=
d I
> don't get the issue fixed before hand :-)
>
> Thanks again for the response!!
>
> Regards,
>
> Kaya
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 12:07:41 von shimmyshack

WW91IGNhbiB1c2UgYSB0ZWxuZXQNCg0KDQpUZWxuZXQgaG9zdG5hbWUgODAN Cg0KDQpHRVQgdXJs
IEhUVFAvMS4xDQpIb3N0OiBob3N0bmFtZQ0KRW50ZXIgZW50ZXINCg0KDQpB bmQgc2VlIHdoYXQg
Y29tZXMgYmFjaw0KDQoNCkl0IHN0cmlrZSBtZSBzcXVpZCBpcyBub3QgcGFz c2luZyBiYWNrIHRo
ZSBoZWFkZXJzIG9yIHlvdSB3b3VsZCBzZWUgdGhlIGJyb3dzZXIgcG9wIHVw LCBidXQgc3F1aWQg
KmlzKiBzZWVpbmcgdGhlIGNoYWxsZW5nZSBzaW5jZSBpdCBmYWlscyB3aXRo IDQwMy4NCg0KTm93
IGRvIHNhbWUgdGVsbmV0IGRpcmVjdCB0byBwYWdlIGFuZCBzZWUgdGhlIGRp ZmZlcmVuY2UNCg0K
U2VudCBmcm9tIG15IEJsYWNrQmVycnmuIHdpcmVsZXNzIGRldmljZQ0KDQot LS0tLU9yaWdpbmFs
IE1lc3NhZ2UtLS0tLQ0KRnJvbTogS2F5YSBTYW1hbiA8U2FtYW5LYXlhQG5l dHNjYXBlLm5ldD4N
CkRhdGU6IFR1ZSwgMTMgT2N0IDIwMDkgMTE6NDU6MDEgDQpUbzogPHVzZXJz QGh0dHBkLmFwYWNo
ZS5vcmc+DQpTdWJqZWN0O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HV0 IGZyb20gV2lyZXNo
YXJrIHdpbGwgaGVscCB5b3UgZ3V5cyBoZWxwIG1lIG91dCBtb3JlIA0KcHJv dmlkZWQgSSBkb24n
dCBnZXQgdGhlIGlzc3VlIGZpeGVkIGJlZm9yZSBoYW5kIDotKQ0KDQpUaGFu a3MgYWdhaW4gZm9y
IHRoZSByZXNwb25zZSEhDQoNClJlZ2FyZHMsDQoNCktheWENCg0KDQotLS0t LS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0NClRo
ZSBvZmZpY2lhbCBVc2VyLVRvLVVzZXIgc3VwcG9ydCBmb3J1bSBvZiB0aGUg QXBhY2hlIEhUVFAg
U2VydmVyIFByb2plY3QuDQpTZWUgPFVSTDpodHRwOi8vaHR0cGQuYXBhY2hl Lm9yZy91c2Vyc2xp
c3QuaHRtbD4gZm9yIG1vcmUgaW5mby4NClRvIHVuc3Vic2NyaWJlLCBlLW1h aWw6IHVzZXJzLXVu
c3Vic2NyaWJlQGh0dHBkLmFwYWNoZS5vcmcNCiAgICIgICBmcm9tIHRoZSBk aWdlc3Q6IHVzZXJz
LWRpZ2VzdC11bnN1YnNjcmliZUBodHRwZC5hcGFjaGUub3JnDQpGb3IgYWRk aXRpb25hbCBjb21t
YW5kcywgZS1tYWlsOiB1c2Vycy1oZWxwQGh0dHBkLmFwYWNoZS5vcmcNCg0K

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 13:33:25 von Kaya Saman

Many thanks for the responses :-)

I am back now with possible job placements which is a good sign!

Matt, I tried telnet but my telnet version doesn't give me as specific
detailed output as that....

I used: telnet {mydomain.com} 80 and it just gives me connected??? No
'get url' etc... - am on Ubuntu 9.04 currently but even within the
Solaris and Cent OS servers I don't get that kind of response.

Dick, I have nothing in access log apart from BitTorrent stuff, but in
error_log I get this:

[Tue Oct 13 14:30:16 2009] [error] [client 127.0.0.1] File does not
exist: /var/www/html/announce

I don't think it is relevant but however the issue looks to be squid by
my inexperienced knowledge...?? :-)

Time to fire up wireshark or tshark on this one I think....

Regards,

Kaya

matt farey wrote:
> You can use a telnet
>
>
> Telnet hostname 80
>
>
> GET url HTTP/1.1
> Host: hostname
> Enter enter
>
>
> And see what comes back
>
>
> It strike me squid is not passing back the headers or you would see the browser pop up, but squid *is* seeing the challenge since it fails with 403.
>
> Now do same telnet direct to page and see the difference
>
> Sent from my BlackBerry® wireless device
>
> -----Original Message-----
> From: Kaya Saman
> Date: Tue, 13 Oct 2009 11:45:01
> To:
> Subject: Re: [users@httpd] .htaccess files not working from internet? intranetaccess
> fine
> matt farey wrote:
>
>> Did you ever investigate the response headers or lookup basic auth in squid?
>> Sent from my BlackBerry® wireless device
>>
>>
>>
> Thanks for the response Matt!!
>
> I haven't checked the headers so will need to run Wireshark on it.
>
> Checked out basic auth in Squid and posted a line of conf which I
> thought was viable:
>
> #auth_param basic realm Squid proxy-caching web server
>
> after restarting however I got the same issue.
>
> When I get back later I'll do more Google'ing on it as I have to run out
> now as meeting for a job interview (currently transitioning between
> ex-student and IT/networking proffessional (make that junior))!!
>
> I think output from Wireshark will help you guys help me out more
> provided I don't get the issue fixed before hand :-)
>
> Thanks again for the response!!
>
> Regards,
>
> Kaya
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 13:43:18 von Kaya Saman

Got a wireshark output on this and get:

X-cache=MISS

but nothing really distinguishable within the http headers..... :-(



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet?

am 13.10.2009 14:11:16 von Dick Davies

On Tue, Oct 13, 2009 at 12:33 PM, Kaya Saman wrote:

> I used: telnet {mydomain.com} 80 and it just gives me connected??? No 'get
> url' etc... - am on Ubuntu 9.04 currently but even within the Solaris and
> Cent OS servers I don't get that kind of response.

You have to type the GET bit yourself :)


> Dick, I have nothing in access log apart from BitTorrent stuff, but in
> error_log I get this:
>
> [Tue Oct 13 14:30:16 2009] [error] [client 127.0.0.1] File does not exist:
> /var/www/html/announce

If squid is running on the same box, you'd see an error like that if
squid was letting you
in and you requested /announce .

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 14:16:44 von Kaya Saman

Dick Davies wrote:
> On Tue, Oct 13, 2009 at 12:33 PM, Kaya Saman wrote:
>
>
>
> You have to type the GET bit yourself :)
>

Oops... newbie mistake haha :-)

Output:

[code]
GET url HTTP/1.1

HTTP/1.0 400 Bad Request
Server: squid/2.6.STABLE15
Date: Tue, 13 Oct 2009 12:14:05 GMT
Content-Type: text/html
Content-Length: 1143
Expires: Tue, 13 Oct 2009 12:14:05 GMT
X-Squid-Error: ERR_INVALID_URL 0
X-Cache: MISS from NetraT1-Proxy
Via: 1.0 NetraT1-Proxy:80 (squid/2.6.STABLE15)
Connection: close

"http://www.w3.org/TR/html4/loose.dtd">

ERROR: The requested URL could not be retrieved


ERROR


The requested URL could not be retrieved





While trying to retrieve the URL:


The following error was encountered:




Some aspect of the requested URL is incorrect. Possible problems:


Your cache administrator is .






Generated Tue, 13 Oct 2009 12:14:05 GMT by NetraT1-Proxy
(squid/2.6.STABLE15)


[/code]
>
>
> If squid is running on the same box, you'd see an error like that if
> squid was letting you
> in and you requested /announce .
>

Separate box!! Is a standalone proxy...



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 14:19:12 von Kaya Saman

Using host: hostname from telnet I get this:

[code]
HTTP/1.0 400 Bad Request
Server: squid/2.6.STABLE15
Date: Tue, 13 Oct 2009 12:17:34 GMT
Content-Type: text/html
Content-Length: 1186
Expires: Tue, 13 Oct 2009 12:17:34 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from NetraT1-Proxy
Via: 1.0 NetraT1-Proxy:80 (squid/2.6.STABLE15)
Proxy-Connection: close

"http://www.w3.org/TR/html4/loose.dtd">

ERROR: The requested URL could not be retrieved


ERROR


The requested URL could not be retrieved





While trying to process the request:


host zeta-ray



The following error was encountered:




Some aspect of the HTTP Request is invalid. Possible problems:


Your cache administrator is .






Generated Tue, 13 Oct 2009 12:17:34 GMT by NetraT1-Proxy
(squid/2.6.STABLE15)


[/code]

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet?

am 13.10.2009 16:00:11 von Dick Davies

Do yourself a big favour and use something like curl.
Telnet is a crappy way to test http.

On Tue, Oct 13, 2009 at 1:19 PM, Kaya Saman wrote:
> Using host: hostname from telnet I get this:
>
> [code]
> HTTP/1.0 400 Bad Request
> Server: squid/2.6.STABLE15
> Date: Tue, 13 Oct 2009 12:17:34 GMT
> Content-Type: text/html
> Content-Length: 1186
> Expires: Tue, 13 Oct 2009 12:17:34 GMT
> X-Squid-Error: ERR_INVALID_REQ 0
> X-Cache: MISS from NetraT1-Proxy
> Via: 1.0 NetraT1-Proxy:80 (squid/2.6.STABLE15)
> Proxy-Connection: close
>
> > "http://www.w3.org/TR/html4/loose.dtd">
> > charset=3Diso-8859-1">
> ERROR: The requested URL could not be retrieved
> > type=3D"text/css">
>
>

ERROR


>

The requested URL could not be retrieved


>

>


> While trying to process the request:
>


> host zeta-ray
>
>

>


> The following error was encountered:
>


>
>


> Some aspect of the HTTP Request is invalid. =A0Possible problems:
>


>

Your cache administrator is =
..
>
>

>



>

> Generated Tue, 13 Oct 2009 12:17:34 GMT by NetraT1-Proxy
> (squid/2.6.STABLE15)
>

>
> [/code]
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet?intranet access fine

am 13.10.2009 16:27:34 von Tom Evans

On Mon, 2009-10-12 at 00:57 +0300, Kaya Saman wrote:
> Hi,
>
> this is my first post here :-)
>
> basically I have google'd this issue a bit and finally realized that
> there was no viable solution that I could deduce results from!
>
> I have a few servers running apache and some folders which have
> .htaccess files in them, I can access these from any network inside the
> NAT of my router however when it comes down to external access from
> outside the NAT I always get permission denied; authorized access only??
>
> My systems are behind a reverse proxy handled by Squid but also after
> Google'ing found that Squid doesn't care about .htaccess and doesn't
> even know what it is.
>
> Another page I read claimed that it could be an issue of IPS protection
> system in the firewall - however iptables doesn't contain any config
> only default and isn't even running I think only in conjunction with
> fail2ban to prevent DoS attacks. My router, a Cisco 857W, also doesn't
> have IPS at all and IDS isn't enabled.
>
> Can anyone help me find a solution to this situation?? I have checked
> the logs for httpd/access_log and error_log only to find nothing
> mentioned about denying anything.....
>
> Any recommendations are appreciated! Thanks
>
> An example of one config file which is the config from Munin is here:
>
> [code]
> ScriptAlias /munin/cgi/ /var/www/munin/cgi/
> #
> # Options ExecCGI
> # SSLRequireSSL
> # order deny,allow
> # deny from all
> # AuthType Basic
> # AuthUserFile /site/cfg/passwd
> # AuthGroupFile /site/cfg/group
> # AuthName "munin"
> # require group munin
> # Satisfy Any
> #

> #
> Alias /munin/ /var/www/munin/
>
> Options None
> # SSLRequireSSL
> order deny,allow
> deny from all
> AuthType Basic
> # AuthUserFile /site/cfg/passwd
> AuthUserFile /var/http-passwords
> # AuthGroupFile /site/cfg/group
> #AuthGroupFile /var/http-group
> # AuthName "munin"
> AuthName "Restricted Files"
> # require group munin
> Require user admin
> Satisfy Any
>

> [/code]
>
> I followed the .htaccess example from the apache.org website and have a
> single file where password/username is stored for multiple pages.....
>
> Kaya

What denies you access, squid or apache?

When you request a file that you get denied access to, what exactly gets
printed to the apache error log? If nothing is printed there, then your
problem is with squid (see you on squid-users@squid-cache.org :).
If you have something printed there, let us know and we can help.

Cheers

Tom



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccess fine

am 13.10.2009 17:29:15 von Kaya Saman

>
> What denies you access, squid or apache?
>

Not sure about this one which is why initially I came here in the first
place but it looks like I have eliminated apache as the culprit since
internally I can gain access to .htaccess uname/passwd files no probs.

Issue is with WAN connection so it seems like Squid is denying me
access, however from what I read Squid has nothing to do with .htaccess
at all but since Squid analyzes http headers etc I think it seems a more
viable culprit to blame then Apache.

> When you request a file that you get denied access to, what exactly gets
> printed to the apache error log? If nothing is printed there, then your
> problem is with squid (see you on squid-users@squid-cache.org :).
> If you have something printed there, let us know and we can help.
>
>

Nothing gets printed meaning that issue is Squid as mentioned above :-)

Of course an expert opinion meaning second opinion is always a good idea
but I think that everyone here would concur that I should approach the
Squid mailing list.....

Thanks for everyone's help time to go to Squid :-)

> Cheers
>
> Tom
>
>
>

Kaya

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 17:54:49 von Marc Patermann

Kaya Saman schrieb:
> Using host: hostname from telnet I get this:
You have to simulate what the browser would do.
So "URL" or "hostname" must be http://the.url.you.never/told/us.here, OK? :)

You could try Firefox and LiveHTTPHeaders add-on.
http://www.mozilla-europe.org/de/firefox/
https://addons.mozilla.org/de/firefox/addon/3829

Then you may see, what's going on.


Marc

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 13.10.2009 20:52:01 von Kaya Saman

> You have to simulate what the browser would do.
> So "URL" or "hostname" must be http://the.url.you.never/told/us.here,
> OK? :)

Whoops, sorry got so caught up in my own stuff major apologies!!

URL is http://zeta-ray.optiplex-networks.com/munin/

This is one of the systems I have .htaccess passwd files on.....

>
> You could try Firefox and LiveHTTPHeaders add-on.
> http://www.mozilla-europe.org/de/firefox/
> https://addons.mozilla.org/de/firefox/addon/3829

Thank you I will try these and curl as well, as suggested previously :-)

>
> Then you may see, what's going on.
>
>
> Marc
>

> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 14.10.2009 11:48:03 von Kaya Saman

Hi guys,

this is output from curl:

[code]
root@Hp-Compaq-2230s:~# curl http://zeta-ray.optiplex-networks.com/munin/


401 Authorization Required

Authorization Required


This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.




Apache/2.2.3 (Red Hat) Server at zeta-ray.optiplex-networks.com
Port 80


[/code]

Am gona try the firefox addons now!!

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 14.10.2009 12:00:09 von shimmyshack

Q3VybCBpcyBub3Qgc2hvd2luZyB0aGUgcmVzcG9uc2UgaGVhZGVycywgSXMg aXQgLVggb3IgLUgg
KG9yIG5laXRoZXIgLSBJIGZvcmdldCEpDQoNCklmIHlvdSBoYXZlIGFjY2Vz cyB0byB3aW5kb3dz
LCB5b3UgY2FuIHVzZSBmaWRkbGVydG9vbCBwcm94eSwgZGFtbiBob3QgZGVi dWdnaW5nIHByb3h5
Lg0KDQpCdXQgYXQgbGVhc3QgeW91IGNhbiBzZWUgdGhhdCBzcXVpZCBkb2Vz IG5vdCB1bmRlcnN0
YW5kIGhvdyB0byBzdXBwbHkgdGhlIGNyZWRlbnRpYWxzIGZyb20gdGhlIGh0 bWwhDQoNCk1hdHQN
ClNlbnQ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bHMgcmVxdWlyZWQu PC9wPg0KPGhyPg0K
PGFkZHJlc3M+QXBhY2hlLzIuMi4zIChSZWQgSGF0KSBTZXJ2ZXIgYXQgemV0 YS1yYXkub3B0aXBs
ZXgtbmV0d29ya3MuY29tIA0KUG9ydCA4MDwvYWRkcmVzcz4NCjwvYm9keT48 L2h0bWw+DQpbL2Nv
ZGVdDQoNCkFtIGdvbmEgdHJ5IHRoZSBmaXJlZm94IGFkZG9ucyBub3chIQ0K DQotLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0t
LS0NClRoZSBvZmZpY2lhbCBVc2VyLVRvLVVzZXIgc3VwcG9ydCBmb3J1bSBv ZiB0aGUgQXBhY2hl
IEhUVFAgU2VydmVyIFByb2plY3QuDQpTZWUgPFVSTDpodHRwOi8vaHR0cGQu YXBhY2hlLm9yZy91
c2Vyc2xpc3QuaHRtbD4gZm9yIG1vcmUgaW5mby4NClRvIHVuc3Vic2NyaWJl LCBlLW1haWw6IHVz
ZXJzLXVuc3Vic2NyaWJlQGh0dHBkLmFwYWNoZS5vcmcNCiAgICIgICBmcm9t IHRoZSBkaWdlc3Q6
IHVzZXJzLWRpZ2VzdC11bnN1YnNjcmliZUBodHRwZC5hcGFjaGUub3JnDQpG b3IgYWRkaXRpb25h
bCBjb21tYW5kcywgZS1tYWlsOiB1c2Vycy1oZWxwQGh0dHBkLmFwYWNoZS5v cmcNCg0K

Re: .htaccess files not working from internet? intranetaccessfine

am 14.10.2009 12:10:11 von Kaya Saman

Firefox plugin is giving me quite an interesting readout and I think
I've located the issue which is what Matt Farey has been saying all
along about the Squid forwarding of HTTP Auth Basic Headers:

I get WWW-Authenticate: Basic realm="Restricted Files" message which I'm
pretty sure is this part of Squid:

#auth_param basic realm

of which after I get an X-cache: MISS message.

Time to go to Squid mailing list I think, would you guys agree???

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: .htaccess files not working from internet? intranetaccessfine

am 14.10.2009 12:28:08 von shimmyshack

V2hhdCBzaG91bGQgaGFwcGVuLCBpcyB0aGF0IA0KRmlyZWZveCByZXF1ZXN0 cyBVUkwNCkdvZXMg
dmlhIHNxdWlkLA0KU3F1aWQgc2VuZHMgb24gZmlyZWZveGVzIHJlcXVlc3Qg aGVhZGVycw0KQXBh
Y2hlIGJhY2tlbmQgc2VuZHMgIm11c3QgYXV0aGVudGljYXRlIiBoZWFkZXJz DQpUaGVzZSBtdXN0
IGJlIHBpY2tlZCB1IGJ5IHNxdWlkIGFuZCByZXZlcnNlZCBvdXQgdG8gZmly ZWZveCwgaWYgdGhp
cyBpcyBoYXBwZW5pbmcsIHlvdSB3aWxsIHNlZSB0aGUgZmlyZWZveCBiYXNp YyBhdXRoZW50aWNh
dGlvbiBwb3AtdXAuDQoNCk9uY2UgZmlyZWZveCBzZWVzIHRob3NlIGF1dGhl bnRpY2F0aW9uIGhl
YWRlcnMgYW5kIHlvdSBmaWxsIGluIHRoZSBib3hlcyBpdCB3aWxsIHNlbmQg dGhlIGEgaGVhZGVy
IHdpdGggYSBwYXlsb2FkIG9mIGJhc2U2NCBlbmNvZGVkIHVzZXJuYW1lOnBh c3N3b3JkDQoNClRo
aXMgbXVzdCBiZSBwcm94aWVkIGJ5IHNxdWlkIHRvIGFwYWNoZSBmb3IgdGhl IHJlc291cmNlIHRv
IGJlIGFsbG93ZWQgYmFjay4NCg0KRmlyZWZveCBzaG91bGQgbm93IGNhY2hl IHRoZXNlIGNyZWRl
bnRpYWxzIGFuZCByZXNlbmQgdGhlbSBldmVyeSBzaW5nbGUgcmVxdWVzdCwg YW5kIHNvIG9uDQoN
Cg0KV2hlcmUgZG9lcyB0aGlzIGZhaWwsIGFyZSB5b3UgZ2V0dGluZy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kaWdlc3QtdW5zdWJzY3JpYmVAaHR0 cGQuYXBhY2hlLm9y
Zw0KRm9yIGFkZGl0aW9uYWwgY29tbWFuZHMsIGUtbWFpbDogdXNlcnMtaGVs cEBodHRwZC5hcGFj
aGUub3JnDQoNCg==

Re: .htaccess files not working from internet? intranetaccessfine

am 14.10.2009 12:35:48 von Kaya Saman

matt farey wrote:
> Sorry this blasted blackberry misses letters! (And top posts!)
>
>
>
> Sent from my BlackBerry® wireless device
>
>
That's cool :-) my next step is to learn how to synch Blackberry's with
colab systems such as Zimbra and Scalix..... it's nice being an
enthusiastic student! - although once I get that first job which is so
near now I doubt it'll last but then again I love what I do so... there
may be some chance to love my job after all;

That aside exact output I'm getting is this:

[code]
----------------------------------------------------------
http://zeta-ray.optiplex-networks.com/munin/

GET /munin/ HTTP/1.1
Host: zeta-ray.optiplex-networks.com
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14)
Gecko/2009090217 Ubuntu/9.04 (jaunty) Firefox/3.0.14
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= 0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46U2NscjExWFA5OQ==

HTTP/1.x 401 Unauthorized
Date: Wed, 14 Oct 2009 09:57:23 GMT
Server: Apache/2.2.3 (Red Hat)
WWW-Authenticate: Basic realm="Restricted Files"
Content-Length: 497
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from NetraT1-Proxy
Via: 1.0 NetraT1-Proxy:80 (squid/2.6.STABLE15)
Connection: close
----------------------------------------------------------
[/code]


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org