Re: [users@httpd] mod rewrite

2012-11-26 Thread Steffan A. Cline
On the rewrite rule, I was working on

RewriteRule ([\w]*)\.(.*) http://domain.com/$1-$2/

BUT what if there is anything before xxx.com like www.xxx.com? I am no pro
with regex but trying to find a way around that.



Thanks

Steffan


On 11/26/12 10:46 AM, "Steffan A. Cline"  wrote:

> Igor,
> 
> I am not sure what you mean. The ?domain=xxx.com option works great.
> 
> I was just wondering if there was a way to change it from ?domain=xxx.com to
> /xxx-com/ simply changing the . to a -
> 
> Is it possible? I didn't know if it was possible to put that into a regex
> replacement of a sort.
> 
> 
> 
> Thanks
> 
> Steffan
> 
> 
> On 11/26/12 12:53 AM, "Igor Cicimov"  wrote:
> 
>> 
>> 
>> On 26/11/2012 4:17 PM, "Steffan A. Cline"  wrote:
>>> >
>>> > Is there a way to rewrite the HTTP_HOST where the . Is changed to a - ?
>>> >
>>> > HTTP_HOST= something.com <http://something.com>
>>> > Redirects to domain.com/something-com/ <http://domain.com/something-com/>
>>> >
>>> > Is it possible?
>> 
>> There is nothing to rewrite here. You need to do what you already said above,
>> redirect the domain something to the other url.
>> 
>>> >
>>> >
>>> > Thanks
>>> >
>>> > Steffan
>>> >
>>> >
>>> > On 11/8/12 11:38 PM, "Igor Cicimov"  wrote:
>>> >
>>>> >> RewriteEngine On
>>>> >> RewriteCond %{HTTP_HOST} !^(www\.)?domain.com <http://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 <http://www.domain.com>  redirects to
>>>>> domain.com?domain=www.domain.com <http://domain.com?domain=www.domain.com>
>>>>> >>>
>>>>> >>> Anyway to fix that? www.domain.com <http://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} !^domain.com <http://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 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/12 6:32 PM, "Igor Cicimov"  wrote:
>>>>>>> >>>>>
>>>>>>>> >>>>>>
>>>>>>>> >>>>>> 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 <http://domain.com>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> So, abc.com <http://abc.com>  hits, it would be rewritten to
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> http://domain.com?domain=abc.com
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> or
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> http://domain.com/abc-com/
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> Any suggestions?
>>>>>>>> >>>>>>
>>>>>>>> >>>>>>
>>>>>>>> >>>>>> Yes, read the mod_rewrite page its all in there
>>>>>>>> >>>>>>
>>>>>>>> >>>>>> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
>>>>>>>> >>>>>>  
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> Thanks
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> Steffan
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> 
>>>>>>>>> -
>>>>>>>>> >>>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>>>>>> >>>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>
>>>>>> >>>>
>>>> >>




Re: [users@httpd] mod rewrite

2012-11-26 Thread Steffan A. Cline
Igor,

I am not sure what you mean. The ?domain=xxx.com option works great.

I was just wondering if there was a way to change it from ?domain=xxx.com to
/xxx-com/ simply changing the . to a -

Is it possible? I didn't know if it was possible to put that into a regex
replacement of a sort.



Thanks

Steffan


On 11/26/12 12:53 AM, "Igor Cicimov"  wrote:

> 
> 
> On 26/11/2012 4:17 PM, "Steffan A. Cline"  wrote:
>> >
>> > Is there a way to rewrite the HTTP_HOST where the . Is changed to a - ?
>> >
>> > HTTP_HOST= something.com <http://something.com>
>> > Redirects to domain.com/something-com/ <http://domain.com/something-com/>
>> >
>> > Is it possible?
> 
> There is nothing to rewrite here. You need to do what you already said above,
> redirect the domain something to the other url.
> 
>> >
>> >
>> > Thanks
>> >
>> > Steffan
>> >
>> >
>> > On 11/8/12 11:38 PM, "Igor Cicimov"  wrote:
>> >
>>> >> RewriteEngine On
>>> >> RewriteCond %{HTTP_HOST} !^(www\.)?domain.com <http://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 <http://www.domain.com>  redirects to
>>>> domain.com?domain=www.domain.com <http://domain.com?domain=www.domain.com>
>>>> >>>
>>>> >>> Anyway to fix that? www.domain.com <http://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} !^domain.com <http://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 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/12 6:32 PM, "Igor Cicimov"  wrote:
>>>>>> >>>>>
>>>>>>> >>>>>>
>>>>>>> >>>>>> 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 <http://domain.com>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> So, abc.com <http://abc.com>  hits, it would be rewritten to
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> http://domain.com?domain=abc.com
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> or
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> http://domain.com/abc-com/
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> Any suggestions?
>>>>>>> >>>>>>
>>>>>>> >>>>>>
>>>>>>> >>>>>> Yes, read the mod_rewrite page its all in there
>>>>>>> >>>>>>
>>>>>>> >>>>>> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
>>>>>>> >>>>>>  
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> Thanks
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> Steffan
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> 
>>>>>>>> -
>>>>>>>> >>>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>>>>> >>>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>>>>> >>>>>>>
>>>>>>> >>>>>>
>>>>> >>>>
>>> >>




Re: [users@httpd] mod rewrite

2012-11-25 Thread Steffan A. Cline
Is there a way to rewrite the HTTP_HOST where the . Is changed to a - ?

HTTP_HOST= something.com
Redirects to domain.com/something-com/

Is it possible?


Thanks

Steffan


On 11/8/12 11:38 PM, "Igor Cicimov"  wrote:

> RewriteEngine On 
> RewriteCond %{HTTP_HOST} !^(www\.)?domain.com <http://domain.com> $ [NC]
> RewriteRule .* http://domain.com?domain=%{HTTP_HOST}
> <http://domain.com?domain=%%7BHTTP_HOST%7D>  [R,L]
> 
> 
> 
> 
> On Fri, Nov 9, 2012 at 3:36 PM, Steffan A. Cline  wrote:
>> Works a charm with one exception.
>> 
>> www.domain.com <http://www.domain.com>  redirects to
>> domain.com?domain=www.domain.com <http://domain.com?domain=www.domain.com>
>> 
>> Anyway to fix that? www.domain.com <http://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} !^domain.com <http://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 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/12 6:32 PM, "Igor Cicimov"  wrote:
>>>> 
>>>>> 
>>>>> 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 <http://domain.com>
>>>>>> 
>>>>>> So, abc.com <http://abc.com>  hits, it would be rewritten to
>>>>>> 
>>>>>> http://domain.com?domain=abc.com
>>>>>> 
>>>>>> or
>>>>>> 
>>>>>> http://domain.com/abc-com/
>>>>>> 
>>>>>> Any suggestions?
>>>>> 
>>>>> Yes, read the mod_rewrite page its all in there
>>>>> 
>>>>> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
>>>>>  
>>>>>> 
>>>>>> 
>>>>>> Thanks
>>>>>> 
>>>>>> Steffan
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -
>>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>>> 
>>>>> 
>>> 
> 




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/12 9:36 PM, "Steffan A. Cline"  wrote:

> 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} !^domain.com <http://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 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/12 6:32 PM, "Igor Cicimov"  wrote:
>>> 
>>>> 
>>>> 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 <http://domain.com>
>>>>> 
>>>>> So, abc.com <http://abc.com>  hits, it would be rewritten to
>>>>> 
>>>>> http://domain.com?domain=abc.com
>>>>> 
>>>>> or
>>>>> 
>>>>> http://domain.com/abc-com/
>>>>> 
>>>>> Any suggestions?
>>>> 
>>>> Yes, read the mod_rewrite page its all in there
>>>> 
>>>> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
>>>>  
>>>>> 
>>>>> 
>>>>> Thanks
>>>>> 
>>>>> Steffan
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>> 
>>>> 
>> 




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} !^domain.com <http://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 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/12 6:32 PM, "Igor Cicimov"  wrote:
>> 
>>> 
>>> 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 <http://domain.com>
>>>> 
>>>> So, abc.com <http://abc.com>  hits, it would be rewritten to
>>>> 
>>>> http://domain.com?domain=abc.com
>>>> 
>>>> or
>>>> 
>>>> http://domain.com/abc-com/
>>>> 
>>>> Any suggestions?
>>> 
>>> Yes, read the mod_rewrite page its all in there
>>> 
>>> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
>>>  
>>>> 
>>>> 
>>>> Thanks
>>>> 
>>>> Steffan
>>>> 
>>>> 
>>>> 
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>> 
>>> 
> 




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 <http://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 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/12 6:32 PM, "Igor Cicimov"  wrote:
>> 
>>> 
>>> 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 <http://domain.com>
>>>> 
>>>> So, abc.com <http://abc.com>  hits, it would be rewritten to
>>>> 
>>>> http://domain.com?domain=abc.com
>>>> 
>>>> or
>>>> 
>>>> http://domain.com/abc-com/
>>>> 
>>>> Any suggestions?
>>> 
>>> Yes, read the mod_rewrite page its all in there
>>> 
>>> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
>>>  
>>>> 
>>>> 
>>>> Thanks
>>>> 
>>>> Steffan
>>>> 
>>>> 
>>>> 
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>> 
>>> 
> 




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/12 6:32 PM, "Igor Cicimov"  wrote:

> 
> 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 <http://domain.com>
>> 
>> So, abc.com <http://abc.com>  hits, it would be rewritten to
>> 
>> http://domain.com?domain=abc.com
>> 
>> or
>> 
>> http://domain.com/abc-com/
>> 
>> Any suggestions?
> 
> Yes, read the mod_rewrite page its all in there
> 
> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
>  
>> 
>> 
>> Thanks
>> 
>> Steffan
>> 
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>> 
> 




[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=abc.com

or

http://domain.com/abc-com/

Any suggestions?


Thanks

Steffan

---
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline  
stef...@execuchoice.net Phoenix, Az
http://www.ExecuChoice.net  USA
AIM: SteffanC Skype : steffancline
GOOGLE : steffan.cl...@gmail.comMSN : stef...@hldns.com
YAHOO  : Steffan_Cline  ICQ : 57234309
---





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



Re: [EMAIL PROTECTED] Apache on Mac OS X 10.3.9 Server

2007-02-22 Thread Steffan A. Cline
To summarize the scenario thus far I have heard the following:

1. Check the persistent connections.
2. Server caching - 2 places.
3. image expiry.


As far as #1, the server is set with the default settings that had
previously been fine.
Max simultaneous connections : 500
Max persistent connections : 500
Connection timeout 300 seconds
Minimum spare servers : 1
Maximum spare servers : 5

Onto #2... There is only 1 place that I can find where you can control
Apple's caching server. That is from the domain level. I went thru and made
sure that was unchecked on every domain so it must be off. Where is the
server level that was mentioned?

As for #3, what has image expiry have to do with it? If a file exists and I
can see it in the directory but when calling the URL and get a file not
found error 1 second and then no error the next, how is it expiry? Is it
possible that Apache's virtual host system is crapping out and defaulting to
the default site where the file definitely does not exist?




Thanks

Steffan

---
T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
[EMAIL PROTECTED] Phoenix, Az
http://www.ExecuChoice.net  USA
AIM : SteffanC  ICQ : 57234309
  Lasso Partner Alliance Member
---



> From: "Steffan A. Cline" <[EMAIL PROTECTED]>
> Reply-To: 
> Date: Wed, 21 Feb 2007 07:02:59 -0700
> To: 
> Conversation: Apache on Mac OS X 10.3.9 Server
> Subject: [EMAIL PROTECTED] Apache on Mac OS X 10.3.9 Server
> 
> I am running into an issue where a client's server is intermittently
> throwing invalid 404 errors. I can't for the life of me figure it out. There
> is a web app that pulls up client previews of their ads. Intermittently the
> page loads with the image missing. When I view source on the page, the
> correct path is there. I copy and paste the url (which I have fully
> qualified) into a new tab and it also intermittently show up. Hitting
> refresh several times or selecting the url bar and hitting enter will make
> the image pop up. It is not isolated to any one browser. It happens to all
> of them. For example here is a url:
> http://adserver.saguarogold.net/20070220162109.jpg
> For example to prove the intermittency, right now I can refresh that url
> over and over and it loads fine. If I load it from the web app and it fails,
> then copy the url to a new tab and try it also fails. BUT again, hitting
> enter in the url bar or refresh several times it works. Originally I had the
> images served via an alias to another folder but decided to go the route of
> its own virtual host but yet this still happens even when directly served.
> 
> Has anyone else seen this intermittency? This has been costing me a lot of
> grief for some time now. I am at the point of wiping the drive clean and
> reinstalling Mac OS X Server to 10.4 and see if this solves the problem.
> 
> Anything to check for or turn on in the config?
> 
> 
> 
> Thanks
> 
> Steffan
> 
> ---
> T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
> Steffan A. Cline
> [EMAIL PROTECTED] Phoenix, Az
> http://www.ExecuChoice.net  USA
> AIM : SteffanC  ICQ : 57234309
>   Lasso Partner Alliance Member
> ---
> 
> 
> 
> 
> -
> 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]



[EMAIL PROTECTED] Apache on Mac OS X 10.3.9 Server

2007-02-21 Thread Steffan A. Cline
I am running into an issue where a client's server is intermittently
throwing invalid 404 errors. I can't for the life of me figure it out. There
is a web app that pulls up client previews of their ads. Intermittently the
page loads with the image missing. When I view source on the page, the
correct path is there. I copy and paste the url (which I have fully
qualified) into a new tab and it also intermittently show up. Hitting
refresh several times or selecting the url bar and hitting enter will make
the image pop up. It is not isolated to any one browser. It happens to all
of them. For example here is a url:
http://adserver.saguarogold.net/20070220162109.jpg
For example to prove the intermittency, right now I can refresh that url
over and over and it loads fine. If I load it from the web app and it fails,
then copy the url to a new tab and try it also fails. BUT again, hitting
enter in the url bar or refresh several times it works. Originally I had the
images served via an alias to another folder but decided to go the route of
its own virtual host but yet this still happens even when directly served.

Has anyone else seen this intermittency? This has been costing me a lot of
grief for some time now. I am at the point of wiping the drive clean and
reinstalling Mac OS X Server to 10.4 and see if this solves the problem.

Anything to check for or turn on in the config?



Thanks

Steffan

---
T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
[EMAIL PROTECTED] Phoenix, Az
http://www.ExecuChoice.net  USA
AIM : SteffanC  ICQ : 57234309
  Lasso Partner Alliance Member
---




-
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]