Re: [users@httpd] mod rewrite

2012-11-08 Thread Igor Cicimov
RewriteEngine On RewriteCond %{HTTP_HOST} !^(www\.)?domain.com $ [NC] RewriteRule .* http://domain.com?domain=%{HTTP_HOST} [R,L] On Fri, Nov 9, 2012 at 3:36 PM, Steffan A. Cline wrote: > Works a charm with one exception. > > www.domain.com redirects to domain.com?domain=www

Re: [users@httpd] mod rewrite

2012-11-08 Thread Igor Cicimov
RewriteEngine On RewriteCond %{HTTP_HOST} !^(www\.)?domain.com $ [NC] RewriteRule .* http://domain.com?domain=%{HTTP_HOST} [R,L] On Fri, Nov 9, 2012 at 3:48 PM, Steffan A. Cline wrote: > Cancel that… Thanks Igor. Here is what I have and it works great!! > > > RewriteCond %{HT

Re: [users@httpd] mod rewrite

2012-11-08 Thread Steffan A. Cline
Cancel thatŠ Thanks Igor. Here is what I have and it works great!! RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com$1 [R=301,L] RewriteCond %{HTTP_HOST} !^namedeli.com$ [NC] RewriteRule .* http://domain.com/?domain=%{HTTP_HOST} [R,L] Thanks Steffan On 11/8

Re: [users@httpd] mod rewrite

2012-11-08 Thread Steffan A. Cline
Works a charm with one exception. www.domain.com redirects to domain.com?domain=www.domain.com Anyway to fix that? www.domain.com should be ignored since that is the domain itself. Thanks Steffan On 11/8/12 7:24 PM, "Igor Cicimov" wrote: > RewriteEngine On > RewriteCond %{HTTP_HOST} !^d

Re: [users@httpd] mod rewrite

2012-11-08 Thread Steffan A. Cline
I'll give this a shot! Thank you, Igor! Thanks Steffan On 11/8/12 7:24 PM, "Igor Cicimov" wrote: > RewriteEngine On > RewriteCond %{HTTP_HOST} !^domain.com $ [NC] > RewriteRule .* http://domain.com?domain=%{HTTP_HOST} [R,L] > > > On Fri, Nov 9, 2012 at 1:05 PM, Stef

Re: [users@httpd] mod rewrite

2012-11-08 Thread Igor Cicimov
RewriteEngine On RewriteCond %{HTTP_HOST} !^domain.com$ [NC] RewriteRule .* http://domain.com?domain=%{HTTP_HOST} [R,L] On Fri, Nov 9, 2012 at 1:05 PM, Steffan A. Cline wrote: > Thanks for the URL. I did not read this one, but a similar one also on the > site. > > I did not blindly ask for sugg

Re: [users@httpd] mod rewrite

2012-11-08 Thread Steffan A. Cline
Thanks for the URL. I did not read this one, but a similar one also on the site. I did not blindly ask for suggestions without trying it first. The issue I ran into was too many redirects. Clearly I didn't get it right and hoped someone may have something worth trying. Thanks Steffan On 11/8/

Re: [users@httpd] mod rewrite

2012-11-08 Thread Igor Cicimov
On Fri, Nov 9, 2012 at 9:59 AM, Steffan A. Cline wrote: > I am trying to figure out a specific rewrite. > > I have a default host set up to catch any domains not served on the > specific server. > > I am trying to direct unknown domains in a manner such as : > > default domain would be domain.com

[users@httpd] mod rewrite

2012-11-08 Thread Steffan A. Cline
I am trying to figure out a specific rewrite. I have a default host set up to catch any domains not served on the specific server. I am trying to direct unknown domains in a manner such as : default domain would be domain.com So, abc.com hits, it would be rewritten to http://domain.com?domain

[users@httpd] Using mod_ext_filter mode=input

2012-11-08 Thread Jon Belanger
I'm trying to intercept file upload requests using the mod_ext_filter module in input mode. I've tried a few test commands to write the STDIN to a file, for example: /usr/bin/tee /tmp/ext_filter_debug And also tried a test script that does basically the same thing: #!/bin/sh cat - > /tmp/ext_

Re: [users@httpd] couldn't see the webpage hosted on my PC

2012-11-08 Thread Ben Johnson
On 11/8/2012 11:52 AM, Cheerful Gao wrote: > Hello, > > I setup a virtual webhost on my PC and use Apache http server 2.2.23. I > setup the virtual server by configuring the httpd.conf and hosts file. > It works but only on my host PC. I can't access the webpage from any > other computers eithe

[users@httpd] couldn't see the webpage hosted on my PC

2012-11-08 Thread Cheerful Gao
Hello, I setup a virtual webhost on my PC and use Apache http server 2.2.23. I setup the virtual server by configuring the httpd.conf and hosts file. It works but only on my host PC. I can't access the webpage from any other computers either inside my network nor outside my network. I registered a