|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ? |
|
#2
|
|||
|
|||
|
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> |
|
#3
|
|||
|
|||
|
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> |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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 |
|
#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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > rewrite :8080 urlroot.com |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|