Re: [users@httpd] mod_lua / mod_proxy: set cookie on the proxied connection
On 1/8/21 6:23 PM, Yann Ylavic wrote: I'm not a Lua coder but wouldn't (something like) this here: local cookie_in = r.headers_in['Cookie'] if cookie_in ~= nil then cookie_in = cookie_in .. "; key=value" else cookie_in = "key=value" end r.headers_in['Cookie'] = cookie_in work? Hi Yann, Seems our posts crossed each other. That's pretty much exactly what I ended up doing indeed, and it works. Thank you for looking into it and providing feedback! Cheers, Gerry - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] mod_lua / mod_proxy: set cookie on the proxied connection
On 1/8/21 5:29 PM, Gerry wrote: Effectively, I would like to modify the proxied HTTP request in such a way that I can inject a Cookie: header. I do not want to set a cookie in the user's client. As usual, after mulling over it for way too long before posting, I found the solution less than an hour after. Turns out one can modify the incoming Cookie: header value by setting r.headers_in["Coookie"] to the desired value, and mod_proxy will happily use it for its request. Sample code, should anyone need it: function proxy_handler(r) if r.uri:match("^/local/websocket") then r.headers_in["Cookie"] = 'MyCookie=foobar' r.handler = "proxy-server" r.proxyreq = apache2.PROXYREQ_REVERSE r.filename = "proxy:wss://192.0.2.1/remote/websocket" return apache2.OK end return apache2.DECLINED end Cheers, Gerry - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] mod_lua / mod_proxy: set cookie on the proxied connection
I am using a combination of mod_lua, mod_proxy, mod_proxy and mod_proxy_wstunnel. Excerpt from the relevant VirtualHost: LuaHookTranslateName /etc/apache2/proxy.lua proxy_handler Simplified proxy: function proxy_handler(r) if r.uri:match("^/local/websocket") then r.handler = "proxy-server" r.proxyreq = apache2.PROXYREQ_REVERSE r.filename = "proxy:wss://192.0.2.1/remote/websocket" return apache2.OK end return apache2.DECLINED end This works like a charm, except that I need a cookie to be set towards the remote websocket, the content of which I do not want to disclose to the user. For simplicity's sake, assume the value of the cookie is a fixed string. Effectively, I would like to modify the proxied HTTP request in such a way that I can inject a Cookie: header. I do not want to set a cookie in the user's client. I'm not sure what the best approach would be here. Any hint is welcome! Thanks, Gerry - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [EMAIL PROTECTED] Uploaded files empty - Apache configuration problem?
On 1/23/06, Gerry Danen <[EMAIL PROTECTED]> wrote: is /tmp world writable?I guess, I'm asking to make sure. I had a similar problem and it turned out that when I double-checked, /tmp was not world writable...Gerry
Re: [EMAIL PROTECTED] Uploaded files empty - Apache configuration problem?
is /tmp world writable?On 1/23/06, Niall Mullally <[EMAIL PROTECTED]> wrote: Hi,I'm in the process of moving an existing website from a shared host toa dedicated server. The dedicated server is running CentOS 4, Apache2.0.52 and PHP 4.3.9.The site is PHP based and a few forms on the site upload files. The uploaded file is stored in the /tmp directory and then moved to itsfinal destination by PHP. This is working fine on the shared hostingaccount. But on the dedicated server, none of the file data is uploading. The final stored file has a size of 0.The $_FILES array in the PHP script that processes the uploaded filecontains the usual information e.g.array(1) {["file1"]=> array(5) {["name"]=> string(16) "file_name_1.jpg"["type"]=> string(24) "application/octet-stream"["tmp_name"]=> string(14) "/tmp/phppaZGQm"["error"]=> int(0) ["size"]=> int(0) }}But as the last value shows, the size is 0. I'm uploading an 80k jpegso there's no problem with max file size limits.All file upload directives are enabled in the php.ini file. /tmp is world writeable.I can't figure out what could be causing this. My PHP works fine on theother server so I don't think that's the problem. It must be aconfiguration issue somewhere, but I can't figure out where. Could it be an Apache or PHP config issue? A permissions issue? Or maybesomething to do with the OS config?Apologies if this isn't the right place for this query, but I'm at mywits end and any help would be greatly appreciated. -The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html > for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- Gerry http://portal.danen.org/
Re: [EMAIL PROTECTED] OT question
Thanks Steven and Keith. There were 2 problems. crontab in my fedora setup had "root" inserted after the time params and the fedora version of cron took that as a command. Then my second problem was that my editor for some silly reason thought they were windoze files rather than unix... All happy now. :) Gerry On 1/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Check this out Gerry. > > http://www.clockwatchers.com/cron_general.html > > Keith > > In theory, theory and practice are the same; > In practice they are not. > > On Sat, 21 Jan 2006, Gerry Danen wrote: > > > To: users@httpd.apache.org > > From: Gerry Danen <[EMAIL PROTECTED]> > > Subject: [EMAIL PROTECTED] OT question > > > > Where would I go to ask questions about cron? > > > > I keep getting /bin/bash: root: command not found > > > > Sorry for the OT post... > > > > Gerry > > > > - > > The official User-To-User support forum of the Apache HTTP Server Project. > > See http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: [EMAIL PROTECTED] > >" from the digest: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] OT question
Where would I go to ask questions about cron? I keep getting /bin/bash: root: command not found Sorry for the OT post... Gerry - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache email address
I found that postfix is the culprit. Guess I'll be visiting their forums next. Thanks all. Gerry On 1/17/06, Adam Ossenford <[EMAIL PROTECTED]> wrote: > > - Original Message ----- > From: "Gerry Danen" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, January 17, 2006 3:35 PM > Subject: [EMAIL PROTECTED] Apache email address > > > When I use a php form to send email, an address called > [EMAIL PROTECTED] is used. Where would that be set? -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache email address
Keith, Nothing there... Gerry On 1/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Have you checked your mail directives in /etc/php.ini. > > Keith > > > On Tue, 17 Jan 2006, Gerry Danen wrote: > > > To: users@httpd.apache.org > > From: Gerry Danen <[EMAIL PROTECTED]> > > Subject: [EMAIL PROTECTED] Apache email address > > > > When I use a php form to send email, an address called > > [EMAIL PROTECTED] is used. Where would that be set? - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache email address
When I use a php form to send email, an address called [EMAIL PROTECTED] is used. Where would that be set? -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] configure internal server error to automatically email me
I have this in .htaccess: ErrorDocument 400 /errhand/error.php?400 ErrorDocument 401 /errhand/error.php?401 ErrorDocument 403 /errhand/error.php?403 ErrorDocument 404 /errhand/error.php?404 ErrorDocument 500 /errhand/error.php?500 /errhand/error.php is in the document root, so you can make that anything. HTH Gerry On 1/14/06, Jeff Lacki <[EMAIL PROTECTED]> wrote: > Thanks Kieth. That appears to be what needs to be done, > however, after I tried this, I found the following issues: > > If I say: > > ErrorDocument 500 "http://www.mysite.com/cgi-bin/err500.pl"; > > I get an Alert that pops up saying: > > Redirection limit for this URL exceeded. Unable to load the requested > page. This my be caused by cookies that are blocked. > > My cookies arent blocked (as far as I know because i use them > with other stuff on my XP box) THis is using Netscape 7.2 > > > If I do: > > Alias /scripts/ "/home/http/myscripts" > ErrorDocument 500 "/scripts/err500.pl" > > It seems to continue to use the apache default page. > > If you get this working, please let me know. > Ill do the same. Thanks again, > Jeff > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache/Bind relationship
On 1/11/06, Aman Raheja <[EMAIL PROTECTED]> wrote: > with dig or nslookup? If not resolving correctly, you might want to seek > help at the Bind mailinglist. Aman, do you have a url for the bind mailing list? Gerry - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache/Bind relationship
Is there a relationship between Apache and Bind?I am using a new server bot both, but on the new server, some domains do not resolve. The external IP address has not changed.Any clues where to start looking are appreciated. ThxGerry
Re: [EMAIL PROTECTED] IP/Host not logged ?
[EMAIL PROTECTED]On 1/2/06, Scott Grayban <[EMAIL PROTECTED]> wrote: Sure. I would like to know who, what, how on this one.ScottOn Mon 2 January 2006 14:44, Gerry Danen wrote: > When it crawls the site, if you get always a hit on a specific page, you> could capture more info than you would get in the log. Sometimes the> "browser" field has the name of the bot in it. >> You want to pursue this off-list?>> Gerry>> On 1/2/06, Scott Grayban <[EMAIL PROTECTED]> wrote:> >> > Looks like only bots. I have a few hits of robots.txt getting hit first> > then> > it crawls the site but thats but I have more hits to the robots.txtwithouta> > crawl.> >> > It almost feels virus like but I have no windows computer here in my > > network.> >> > Scott> >> > On Mon 2 January 2006 13:28, Gerry Danen wrote:> > > Does it happen with real visitors also, or just bots?> > > > > > On 1/2/06, Scott Grayban <[EMAIL PROTECTED]> wrote:> > > >> > > > The missing IP/Host of course. I have never seen this before and I > > > > know it didn't come from anything I do here. This just started to> > happen.> > > >> > > > Scott> > > >> > > > On Mon 2 January 2006 12:59, Gerry Danen wrote: > > > > > Scott, what's the mystery, the missing IP or the GET robots.txt?> > > >> > > >> > >> >> > ----- > > The official User-To-User support forum of the Apache HTTP Server Project.> > See http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: [EMAIL PROTECTED]> >" from the digest: [EMAIL PROTECTED]> > For additional commands, e-mail: [EMAIL PROTECTED]> >> >>>> -- > Gerry> http://portal.danen.org/>-The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- Gerryhttp://portal.danen.org/
Re: [EMAIL PROTECTED] IP/Host not logged ?
When it crawls the site, if you get always a hit on a specific page, you could capture more info than you would get in the log. Sometimes the "browser" field has the name of the bot in it. You want to pursue this off-list? GerryOn 1/2/06, Scott Grayban <[EMAIL PROTECTED]> wrote: Looks like only bots. I have a few hits of robots.txt getting hit first thenit crawls the site but thats but I have more hits to the robots.txt without acrawl.It almost feels virus like but I have no windows computer here in my network. ScottOn Mon 2 January 2006 13:28, Gerry Danen wrote:> Does it happen with real visitors also, or just bots?>> On 1/2/06, Scott Grayban <[EMAIL PROTECTED] > wrote:> >> > The missing IP/Host of course. I have never seen this before and I> > know it didn't come from anything I do here. This just started to happen.> >> > Scott > >> > On Mon 2 January 2006 12:59, Gerry Danen wrote:> > > Scott, what's the mystery, the missing IP or the GET robots.txt?> >> >>- The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]-- Gerryhttp://portal.danen.org/
Re: [EMAIL PROTECTED] IP/Host not logged ?
Does it happen with real visitors also, or just bots?On 1/2/06, Scott Grayban <[EMAIL PROTECTED]> wrote: The missing IP/Host of course. I have never seen this before and Iknow it didn't come from anything I do here. This just started to happen. ScottOn Mon 2 January 2006 12:59, Gerry Danen wrote:> Scott, what's the mystery, the missing IP or the GET robots.txt?
Re: [EMAIL PROTECTED] IP/Host not logged ?
Scott, what's the mystery, the missing IP or the GET robots.txt?GerryOn 1/2/06, Scott Grayban <[EMAIL PROTECTED] > wrote:Ok I have been getting some really weird hits on my websites and they don't contain a IP or host in the log.. - - [02/Jan/2006:01:59:37 -0800] "GET /robots.txt HTTP/1.0" 200 54 "-""Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"Has anyone else been getting these as well? And does anyone know how this is happening? I have never seen this before.Scott-The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- Gerryhttp://portal.danen.org/
[EMAIL PROTECTED] Getting WHOIS info
I want to create a page where I enter an IP address then exec() to run whois and then display the output. I like to do this in PHP 5. This is what I try: $arg = trim($_GET[ip]); // get IP address echo"ARIN:"; $out= "/home/website/work/" . $arg . ".txt" ; $cmd= "whois -h whois.arin.net " .$arg . " >" . $out ; exec( $cmd ); include ( $out ); echo""; The output file is created but no content. The directory is chmod'ed to 777... The command works fine from the command line. Any ideas? Gerry - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] php & security per page per user
I have learned a lot from looking at scripts from hotscripts.com and from phpBB. You may want to start there. Check out http://www.hotscripts.com/ but be aware that not every submission is a solid and secure program. Gerry On 12/28/05, JC <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm trying to develop an internal website that requires security for > specific page per specific user. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] .htaccess to prevent external access
Owen and others, Putting this in httpd.conf works: order deny,allow allow from 192.168.0.218 deny from all I think I will collect things like these in a single include conf file for now. All sites are maintained by myself, so there is no need for other people to tinker with .htaccess files. Thanks all for your help. Gerry On 12/22/05, Boyle Owen <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Gerry Danen [mailto:[EMAIL PROTECTED] > > Sent: Donnerstag, 22. Dezember 2005 15:58 > > To: users@httpd.apache.org > > Subject: Re: [EMAIL PROTECTED] .htaccess to prevent external access > > > > > > Oddly enough, httpd.conf does not show "AllowOverride" anywhere... > > So check for an "Include" directive (bringing in additional config code). > Also, verify that you are editing the correct config file (you'd be surprised > how often that happens...). Put in a deliberate syntax error and run a > configtest - verify the error is detected. > > > This is really baffling! > > Mainly because you are using a rather complicated setup right-off. Simplify > it first by moving the directives from the .htaccess to a block > in the main config and replacing the script you are trying to hit with a > plain file URL. Once you get it working, you can add on the complexity > layer-by-layer, checking it still works at each step. > > Rgds, > Owen Boyle > Disclaimer: Any disclaimer attached to this message may be ignored. > > > > > Gerry > > > > On 12/22/05, Boyle Owen <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > > > > > > > The error log says ".htaccess: order not allowed here"... > > > > > > 1) Your resource is a script (hence the error 500) - it's > > easier to debug if it's a plain file. > > > 2) Your Allow directives are in a .htaccess file - it's > > easier to debug if they're in a Directory block in the main config. > > > 3) The error above implies that you have an "AllowOverride" > > in the main config which is disabling the use of .htaccess > > files (eg, AllowOverride none). > > > > > > What I guess is happening is that the AllowOverride in the > > main config is disabling the .htacces so your Allow/Deny > > directives don't have any effect. The request gets in but > > then the script that's supposed to run is failing for an > > unconnected reason. > > > > > > Probably if you remove AllowOverride, it'll "work" (ie, > > allow some addresses, deny others) but you really should read > > up on the docs for the directives mentioned. > > > > - > > The official User-To-User support forum of the Apache HTTP > > Server Project. > > See http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: [EMAIL PROTECTED] > >" from the digest: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > This message is for the named person's use only. It may contain confidential, > proprietary or legally privileged information. No confidentiality or > privilege is waived or lost by any mistransmission. If you receive this > message in error, please notify the sender urgently and then immediately > delete the message and any copies of it from your system. Please also > immediately destroy any hardcopies of the message. You must not, directly or > indirectly, use, disclose, distribute, print, or copy any part of this > message if you are not the intended recipient. The sender's company reserves > the right to monitor all e-mail communications through their networks. Any > views expressed in this message are those of the individual sender, except > where the message states otherwise and the sender is authorised to state them > to be the views of the sender's company. > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] .htaccess to prevent external access
Oddly enough, httpd.conf does not show "AllowOverride" anywhere... This is really baffling! Gerry On 12/22/05, Boyle Owen <[EMAIL PROTECTED]> wrote: > > -Original Message- > > > > The error log says ".htaccess: order not allowed here"... > > 1) Your resource is a script (hence the error 500) - it's easier to debug if > it's a plain file. > 2) Your Allow directives are in a .htaccess file - it's easier to debug if > they're in a Directory block in the main config. > 3) The error above implies that you have an "AllowOverride" in the main > config which is disabling the use of .htaccess files (eg, AllowOverride none). > > What I guess is happening is that the AllowOverride in the main config is > disabling the .htacces so your Allow/Deny directives don't have any effect. > The request gets in but then the script that's supposed to run is failing for > an unconnected reason. > > Probably if you remove AllowOverride, it'll "work" (ie, allow some addresses, > deny others) but you really should read up on the docs for the directives > mentioned. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] .htaccess to prevent external access
On 12/22/05, Boyle Owen <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Gerry Danen [mailto:[EMAIL PROTECTED] > > Sent: Donnerstag, 22. Dezember 2005 07:31 > > To: users@httpd.apache.org > > Subject: Re: [EMAIL PROTECTED] .htaccess to prevent external access > > > > > > Hmmm... Now I get an error 500.. > > 500 means "internal server error" - that means that the request got through > the authorisation scheme but then the script (or whatever the resource is) > failed to execute. So the scheme *did* work - it was the request which failed > execute in the server. > > BTW, always post the error logs entry as well as the browser result.. Owen, The error log says ".htaccess: order not allowed here"... Gerry - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] .htaccess to prevent external access
Hmmm... Now I get an error 500... Order Deny,Allow Deny from all Allow from 192.168.0.218 No combinations seem to work. On 12/21/05, Joshua Slive <[EMAIL PROTECTED]> wrote: > On 12/21/05, Graham Frank <[EMAIL PROTECTED]> wrote: > > > > Order Allow,Deny > > Allow from 192 > > Deny from All > > > > That would return a 403 Forbidden error for anything not connecting from a > > 192. IP address. > > Oops. I think you meant > Order Deny,Allow > > And he asked for how to allow a single address, so more like > Allow from 192.0.0.1 > > For the username/password part, see: > http://httpd.apache.org/docs/2.2/howto/auth.html > > Joshua. > -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] .htaccess to prevent external access
Thanks, Graham and Joshua. The apache.org link has lots of info. Will have to study that and tinker... :) Gerry On 12/21/05, Joshua Slive <[EMAIL PROTECTED]> wrote: > On 12/21/05, Graham Frank <[EMAIL PROTECTED]> wrote: > > > > Order Allow,Deny > > Allow from 192 > > Deny from All > > > > That would return a 403 Forbidden error for anything not connecting from a > > 192. IP address. > > Oops. I think you meant > Order Deny,Allow > > And he asked for how to allow a single address, so more like > Allow from 192.0.0.1 > > For the username/password part, see: > http://httpd.apache.org/docs/2.2/howto/auth.html > > Joshua. > -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] .htaccess to prevent external access
Can someone provide a .htaccess example of: a. restricting access to a single 192. IP address b. restricting access to a single username/password Thanks very much. -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Caching Images
Mike, I don't believe you will gain much with caching. XP is your bottleneck if there is one. Gerry On 12/20/05, Michael Avila <[EMAIL PROTECTED]> wrote: > The idea is to have the images be cached (even in memory if possible) so that > it is super fast as I am running this on my PC that I use for other things. > And I only have 1 GB of memory. > > It is my understanding from reading posts that mod_cache relies on the expire > statement. Images will not have that so I was wondering how to cache only > them. This is a phpBB forum with oscommerce. Oscommerce more than phpBB has > images. > > Thanks. > > Mike > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joshua > > Slive > > Sent: Tuesday, December 20, 2005 9:53 PM > > To: users@httpd.apache.org > > Subject: Re: [EMAIL PROTECTED] Caching Images > > > > > > On 12/20/05, Michael Avila <[EMAIL PROTECTED]> wrote: > > > WinXP Pro SP2 > > > Apache 2.0.55 > > > > > > How can I get Apache to cache just images since they will > > rarely change but > > > everything else does? > > > > Do you want apache to cache the images, or do you want the browsers to > > cache them? If the latter, look at mod_expires. If the former, what > > exactly do you hope to get from caching? Serving static files is very > > fast without any cache. > > > > Joshua. > > > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Upgrading to Apache/2.0.54 from 1.3.26
Hi Alfred, Yes, Apache is running. I'm running virtual hosts so the hardcoded ip address does not really work. Gerry On 12/19/05, Alfred Vahau <[EMAIL PROTECTED]> wrote: > Hi, > Is Apache running at all? > If Apache is running, what happens if you explicitly set Listen address>:80 in the conf file and then try to access > the index page from the browser > > http:///index.html > > Alfred, > > Gerry Danen wrote: > > >I have set up a new server and adjusted the config files, but I keep > >getting "connection refused". Been chewing on this for some time now. > >Does anybody have any suggestions? > > > >Many thanks > > > > > >-- > >Gerry > >http://portal.danen.org/ > > > >- > >The official User-To-User support forum of the Apache HTTP Server Project. > >See http://httpd.apache.org/userslist.html> for more info. > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > " from the digest: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Upgrading to Apache/2.0.54 from 1.3.26
I have set up a new server and adjusted the config files, but I keep getting "connection refused". Been chewing on this for some time now. Does anybody have any suggestions? Many thanks -- Gerry http://portal.danen.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]