Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 22nd, 2002, 05:19 PM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
rewrite :8080 urlroot.com

my brain hurts

RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P]




this below help
>>/VirtualHostBase/http/

what would this be, would I leave it like this or would it be

http://127.0.0.1:8080/Site folder

?

Reply With Quote
  #2  
Old January 22nd, 2002, 06:24 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you want to use just internal redirect without proxy [P], use full system path. For [P], use full URL path like so:

<VirtualHost *>
ServerName google.mydomain.com
RewriteEngine on
RewriteRule ^(.*) http://www.google.com$1 [P]
CustomLog /var/log/apache/google_log
</VirtualHost>

Reply With Quote
  #3  
Old January 22nd, 2002, 07:04 PM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
so like this


<VirtualHost *>
ServerName mydomain.com:8080/folder
RewriteEngine on
RewriteRule ^(.*) http://www.mydomain.com$1 [P]
CustomLog /var/log/apache/google_log
</VirtualHost>

Reply With Quote
  #4  
Old January 23rd, 2002, 12:04 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Not for your ServerName directive.
The format is just a domain name without port/path.
Apache can be happily configured with vhost. Why use port 8080?

Reply With Quote
  #5  
Old January 23rd, 2002, 12:19 AM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
i'm lost I think I understand the rewrite
so this beyond apache now
I need to understand virtualhostmonster
and set that

thanks for your time freebsd

can't wait for 4.5 release

Reply With Quote
  #6  
Old January 23rd, 2002, 12:34 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Normally your DNS needs to be properly configured before setting up vhost. But for Apache running on localhost, you can assign additional FQDNs to localhost rather than using different ports. Keep in mind, Apache reads not only /etc/resolv.conf but /etc/hosts as well. So you can simply put:

127.0.0.1 localhost localhost.domain.com google.domain another.domain.com # on a single line

Reply With Quote
  #7  
Old January 23rd, 2002, 02:21 AM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Thanks that does help but my problem is with VHM
(not apache thread is dead)
I am trying to get apache to control zserver & then
tomcat and php too all live in harmony
the 127.0.0.1 comes in as first line of defense from
first post where apache only has access

I Am a newbie

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > rewrite :8080 urlroot.com


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT