Re: [us...@httpd] File Extensions
On Wed, Nov 10, 2010 at 2:39 AM, dojo karta wrote: > Hey Greetings, > > I wanted to know if HTTPD can help me to restrict serving files with > particular Extensions. > > I mean I have a Web application primarily written in JS. I do not want to > throw away the code open to everyone. So is there a way I can configure > HTTPD to say no if somebody tries to access the js may be through browser. > > V Rajkumar > Novell You can surely do that, but then your browser will not be able to download the JavaScript, and your browser will not be able to execute the JS. JS is a client-side language, you will not be able to hide it for the user. You can however obfuscate the code. Search google for that. Regards, J. - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] DirectoryIndex for a specific index
* Eric Covener [101109 14:55]: > On Tue, Nov 9, 2010 at 3:08 PM, Tim Johnson wrote: <..> > Is it possible to to set directory files names specific to the > > directory: > > Example:: > > of course you can manually do this by using DirectoryIndex inside of > or , but if you've got more than a few maybe you > want to look at mod_macro. Thank you Eric. I've got my lead. cheers -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Building 2.2.17 on MacOSX
On MacOSX 10.6.4. Current Apple development tools. Upacked 2.2.17, ran configure (no special options), ran make. glibtool is in PATH, but what I ended up with was ... Making all in pcre /opt/subversion/build-1/libtool --silent --mode=compile gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/Users/benson/x/httpd-2.2.17/srclib/pcre -I. -I/Users/benson/x/httpd-2.2.17/os/unix -I/Users/benson/x/httpd-2.2.17/server/mpm/prefork -I/Users/benson/x/httpd-2.2.17/modules/http -I/Users/benson/x/httpd-2.2.17/modules/filters -I/Users/benson/x/httpd-2.2.17/modules/proxy -I/Users/benson/x/httpd-2.2.17/include -I/Users/benson/x/httpd-2.2.17/modules/generators -I/Users/benson/x/httpd-2.2.17/modules/mappers -I/Users/benson/x/httpd-2.2.17/modules/database -I/opt/subversion/include/apr-1 -I/opt/subversion/include -I/Users/benson/x/httpd-2.2.17/modules/proxy/../generators -I/Users/benson/x/httpd-2.2.17/modules/ssl -I/Users/benson/x/httpd-2.2.17/modules/dav/main -c maketables.c && touch maketables.lo - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] File Extensions
Hey Greetings, I wanted to know if HTTPD can help me to restrict serving files with particular Extensions. I mean I have a Web application primarily written in JS. I do not want to throw away the code open to everyone. So is there a way I can configure HTTPD to say no if somebody tries to access the js may be through browser. V Rajkumar Novell
Re: [us...@httpd] DirectoryIndex for a specific index
On Tue, Nov 9, 2010 at 3:08 PM, Tim Johnson wrote: > Platform is ubuntu 10.04 > in my /etc/apache2/mods-available/dir.conf, > I have the following :: > > > DirectoryIndex index.html index.php index.py index.cgi index.pl index.xhtml > index.htm > > > Is it possible to to set directory files names specific to the > directory: > Example:: > for > mydomain/foo1 I could have index_foo1.html index_foo1.php ... etc > > for > mydomain/foo2 I could have index_foo2.html index_foo2.php ... etc > > URLs to documentation, keywords or discussions would be sufficient. > thanks of course you can manually do this by using DirectoryIndex inside of or , but if you've got more than a few maybe you want to look at mod_macro. > -- > Tim > tim at johnsons-web.com or akwebsoft.com > http://www.akwebsoft.com > > - > 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: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > > -- Eric Covener cove...@gmail.com - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Avoiding placing #!path/to/phpinterpreter
On Tue, Nov 9, 2010 at 3:04 PM, Axel Gallus wrote: > > I will read about it in the documentation, but maybe you could give me > an example right off the bat? something like # or other type of container AddHandler runphp .cgi Action runphp /cgi-bin/php-cgi with that relative path on the Action, the php-cgi binary would need to be in serverroot/cgi-bin alternatively, you can create wrapper in cgi-bin called php-cgi #!/bin/sh exec /full/path/to/php-cgi $* but that has extra processing to get to the real php binary - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] DirectoryIndex for a specific index
Platform is ubuntu 10.04 in my /etc/apache2/mods-available/dir.conf, I have the following :: DirectoryIndex index.html index.php index.py index.cgi index.pl index.xhtml index.htm Is it possible to to set directory files names specific to the directory: Example:: for mydomain/foo1 I could have index_foo1.html index_foo1.php ... etc for mydomain/foo2 I could have index_foo2.html index_foo2.php ... etc URLs to documentation, keywords or discussions would be sufficient. thanks -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
AW: [us...@httpd] Avoiding placing #!path/to/phpinterpreter
I will read about it in the documentation, but maybe you could give me an example right off the bat? thx and regards A.Gallus -Ursprüngliche Nachricht- Von: Eric Covener [mailto:cove...@gmail.com] Gesendet: Di 09.11.2010 20:55 An: users@httpd.apache.org Betreff: Re: [us...@httpd] Avoiding placing #!path/to/phpinterpreter On Tue, Nov 9, 2010 at 1:40 PM, Axel Gallus wrote: > > Hi Guys,? > > I set up an envronment where files with *.cgi ending > get executed by the mod_cgi (or mod_cgid). > > I have to place the line #!/usr/cgi-bin in each of those files > to let them run by the interpreter. > > Is there a way to render this unneccessary so that they automatically get > executed by > the interpreter , maybe by a ScripAlias or some other Alias? Action? -- Eric Covener cove...@gmail.com - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Avoiding placing #!path/to/phpinterpreter
On Tue, Nov 9, 2010 at 1:40 PM, Axel Gallus wrote: > > Hi Guys, > > I set up an envronment where files with *.cgi ending > get executed by the mod_cgi (or mod_cgid). > > I have to place the line #!/usr/cgi-bin in each of those files > to let them run by the interpreter. > > Is there a way to render this unneccessary so that they automatically get > executed by > the interpreter , maybe by a ScripAlias or some other Alias? Action? -- Eric Covener cove...@gmail.com - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Avoiding placing #!path/to/phpinterpreter
Hi Guys, I set up an envronment where files with *.cgi ending get executed by the mod_cgi (or mod_cgid). I have to place the line #!/usr/cgi-bin in each of those files to let them run by the interpreter. Is there a way to render this unneccessary so that they automatically get executed by the interpreter , maybe by a ScripAlias or some other Alias? Regards Axel Gallus
Re: [us...@httpd] Limiting Request Body suggestion
On Tue, Nov 9, 2010 at 2:17 AM, Matus UHLAR - fantomas wrote: >> On Thu, October 28, 2010 16:24, Tom Evans wrote: >> > Why do you care what the status code is? (or rather, why do you want >> > to return OK when an error occurs?) > > On 28.10.10 16:48, Joost de Heer wrote: >> To work around the "Display userfriendly error messages" bug^Wfeature? > > Is there any need for work around this? > > They may come with greater limits later. Simply give them what they have > chosen: bullshit error messages. > Providing .reg file that removes the lame setting is the best we can do > about this. > > sorry for being semi-OT Doesn't work for us. We have clients who pay for our products and electronically send there information to us and it's the requirement from the client products to send them back the graceful turnaway with good error message back to the user. This is hard requirement and that's why I am stuck. I am thinking of may be writing something of my own. Do you think I can write some cgi handler? > > -- > Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ > Warning: I wish NOT to receive e-mail advertising to this address. > Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. > Your mouse has moved. Windows NT will now restart for changes to take > to take effect. [OK] > > - > 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: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] mass proxying via mod_rewrite
Hi Apache users/experts, 1) Is there an equivalent of ProxyPassMatch for Apache 2.0? (I don't have the option to upgrade to 2.2). 2) While ProxyPassMatch seems to satisfy half my problem, I am wondering how I can implement the following: Proxy www.clientX.com to http://clients.company.com/clientXname (but the main company URL shouldn't be proxied). 3) Is the following allowed? ProxyPass http://www.company.com ! Any inputs or suggestions on my original mail are appreciated. On Mon, Nov 8, 2010 at 11:37 PM, Sai A wrote: > Hey Nick, > > Thanks for the reply. I didn't know about ProxyPassMatch. I am using Apache > 2.0 (I forgot to mention that in my original mail) and I couldn't see > ProxyPassMatch in that. I however found a ProxyMatch directive in that, > would that work for this need? I'd have about 5k client URLs. > > > On Mon, Nov 8, 2010 at 11:23 PM, Nick Kew wrote: > >> On Mon, 8 Nov 2010 23:14:54 +0530 >> Sai A wrote: >> >> > Hi Apache users/experts, >> > >> > I am trying to achieve proxying using mod_rewrite. >> >> That seems to be your mistake. >> >> I am trying to do the >> > following mappings: >> > Let www.company.com/foo/bar remain as such >> > Let all special subdomains.company.com/foo/bar remain as such >> > Proxy www.client1.com/admin to http://admin.company.com/client1name >> > Proxy www.client1.com to http://clients.company.com/client1name >> >> Keep it simple. A single ProxyPassMatch does that. >> >> -- >> Nick Kew >> >> - >> 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: users-unsubscr...@httpd.apache.org >> " from the digest: users-digest-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> >> >
Re: [us...@httpd] Limiting Request Body suggestion
> On Thu, October 28, 2010 16:24, Tom Evans wrote: > > Why do you care what the status code is? (or rather, why do you want > > to return OK when an error occurs?) On 28.10.10 16:48, Joost de Heer wrote: > To work around the "Display userfriendly error messages" bug^Wfeature? Is there any need for work around this? They may come with greater limits later. Simply give them what they have chosen: bullshit error messages. Providing .reg file that removes the lame setting is the best we can do about this. sorry for being semi-OT -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Your mouse has moved. Windows NT will now restart for changes to take to take effect. [OK] - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org