Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by rewrite ( 13 years ago )
RewriteEngine On
ProxyPreserveHost On
ProxyVia Full
ProxyStatus On
# This is for debugging the rewrite rules
# RewriteLog "/var/log/apache2/rewrite.log"
# RewriteLogLevel 9
# =================
# Cruises
# =================
# Source server definitions
RewriteRule .* - [E=SVR_CRUISES:http://localhost:8080]
RewriteRule .* - [E=SVR_CRUISE_GUI:http://localhost:8082]
RewriteRule .* - [E=SVR_CRUISE_GUI_DETAIL:http://localhost:8084]
RewriteRule .* - [E=SVR_COMMON:http://ic.decolar.it]
RewriteRule .* - [E=SVR_CRUISES_IC:http://vmmuller.servers.despegar.it:9880]
RewriteRule .* - [E=SVR_VACATION_RENTALS_BO:http://localhost:3000]
RewriteRule .* - [E=SVR_VACATION_RENTALS_FE:http://localhost:8080]
#RewriteRule .* - [E=SVR_SUBVERSION:http://svn.despegar.it:8080]
# Paths with the word "cruises" on them are mapped to the local development environment
# In the front-end project, js's are stored in js/cruise, images in images/cruise, etc.
# Site is accessed like http://localhost/cruises/xxxxx and that is mapped to http://localhost:8080/xxxxx
RewriteRule ^(/)?$ %{ENV:SVR_CRUISES} [P]
RewriteRule ^/(cruises/shop/search/(.*)) %{ENV:SVR_CRUISE_GUI}/cruise-gui-service/cruises/shop/search/$2 [NC,P]
RewriteRule ^/(cruises/shop/detail/(.*)) %{ENV:SVR_CRUISE_GUI_DETAIL}/$1 [NC,P]
RewriteRule ^/(cruises/(.*)) %{ENV:SVR_CRUISES}/$2 [NC,P]
RewriteRule ^/(images/cruise/.*) %{ENV:SVR_CRUISES}/$1 [NC,P]
RewriteRule ^/(vacation-rentals/(.*)) %{ENV:SVR_VACATION_RENTALS_FE}/vacation-rentals/$2 [NC,P]
RewriteRule ^/(alugueis-para-temporada/(.*)) %{ENV:SVR_VACATION_RENTALS_FE}/alugueis-para-temporada/$2 [NC,P]
RewriteRule ^/(alquileres-temporarios/(.*)) %{ENV:SVR_VACATION_RENTALS_FE}/alquileres-temporarios/$2 [NC,P]
RewriteRule ^/(vrbo/(.*)) %{ENV:SVR_VACATION_RENTALS_BO}/vacation-rentals/$2 [NC,P]
# Redirect nibbler requests to version XX on IC, to avoid having a local copy of it
RewriteRule ^/js/custom/(.*) %{ENV:SVR_COMMON}/js-versioned/trunk/custom/$1 [NC]
RewriteRule ^/js/FrameworkJS/(.*) %{ENV:SVR_COMMON}/js-versioned/trunk/FrameworkJS/$1 [NC]
RewriteRule ^/css/despegar/(.*) %{ENV:SVR_COMMON}/css-versioned/trunk/despegar/$1 [NC]
RewriteRule ^/(.+) %{ENV:SVR_COMMON}/$1 [NC]
RewriteRule ^/(cruises-IC/(.*)) %{ENV:SVR_CRUISES_IC}/$2 [NC,P]
RewriteCond %{HTTP_HOST} ^desa.cruisebo.*$ [NC]
## Rules of Crusies
RewriteRule ^/(cruise-images/.*) %{ENV:SVR_CRUISES_BO}/$1 [NC,P]
## Redirect nibbler css y js IC
RewriteRule ^/nibbler-js-versioned/(.*) %{ENV:SVR_COMMON}/nibbler-js-versioned/20.0.2/$1 [NC]
RewriteRule ^/nibbler-css-versioned/(.*) %{ENV:SVR_COMMON}/nibbler-css-versioned/20.0.2/$1 [NC]
[16:32:32 rleme /etc/apache2]
[16:32:32 rleme /etc/apache2] cd ~
[16:32:52 rleme ~] cd /etc/apache2/
[16:34:49 rleme /etc/apache2] ls
apache2.conf conf.d envvars magic mods-available mods-enabled ports.conf RewriteRulesCruises.conf sites-available sites-enabled
[16:34:49 rleme /etc/apache2] cat RewriteRulesCruises.conf
RewriteEngine On
ProxyPreserveHost On
ProxyVia Full
ProxyStatus On
# This is for debugging the rewrite rules
# RewriteLog "/var/log/apache2/rewrite.log"
# RewriteLogLevel 9
# =================
# Cruises
# =================
# Source server definitions
RewriteRule .* - [E=SVR_CRUISES:http://localhost:8080]
RewriteRule .* - [E=SVR_CRUISE_GUI:http://localhost:8082]
RewriteRule .* - [E=SVR_CRUISE_GUI_DETAIL:http://localhost:8084]
RewriteRule .* - [E=SVR_COMMON:http://ic.decolar.it]
RewriteRule .* - [E=SVR_CRUISES_IC:http://vmmuller.servers.despegar.it:9880]
RewriteRule .* - [E=SVR_VACATION_RENTALS_BO:http://localhost:3000]
RewriteRule .* - [E=SVR_VACATION_RENTALS_FE:http://localhost:8080]
#RewriteRule .* - [E=SVR_SUBVERSION:http://svn.despegar.it:8080]
# Paths with the word "cruises" on them are mapped to the local development environment
# In the front-end project, js's are stored in js/cruise, images in images/cruise, etc.
# Site is accessed like http://localhost/cruises/xxxxx and that is mapped to http://localhost:8080/xxxxx
RewriteRule ^(/)?$ %{ENV:SVR_CRUISES} [P]
RewriteRule ^/(cruises/shop/search/(.*)) %{ENV:SVR_CRUISE_GUI}/cruise-gui-service/cruises/shop/search/$2 [NC,P]
RewriteRule ^/(cruises/shop/detail/(.*)) %{ENV:SVR_CRUISE_GUI_DETAIL}/$1 [NC,P]
RewriteRule ^/(cruises/(.*)) %{ENV:SVR_CRUISES}/$2 [NC,P]
RewriteRule ^/(images/cruise/.*) %{ENV:SVR_CRUISES}/$1 [NC,P]
RewriteRule ^/(vacation-rentals/(.*)) %{ENV:SVR_VACATION_RENTALS_FE}/vacation-rentals/$2 [NC,P]
RewriteRule ^/(alugueis-para-temporada/(.*)) %{ENV:SVR_VACATION_RENTALS_FE}/alugueis-para-temporada/$2 [NC,P]
RewriteRule ^/(alquileres-temporarios/(.*)) %{ENV:SVR_VACATION_RENTALS_FE}/alquileres-temporarios/$2 [NC,P]
RewriteRule ^/(vrbo/(.*)) %{ENV:SVR_VACATION_RENTALS_BO}/vacation-rentals/$2 [NC,P]
# Redirect nibbler requests to version XX on IC, to avoid having a local copy of it
RewriteRule ^/js/custom/(.*) %{ENV:SVR_COMMON}/js-versioned/trunk/custom/$1 [NC]
RewriteRule ^/js/FrameworkJS/(.*) %{ENV:SVR_COMMON}/js-versioned/trunk/FrameworkJS/$1 [NC]
RewriteRule ^/css/despegar/(.*) %{ENV:SVR_COMMON}/css-versioned/trunk/despegar/$1 [NC]
RewriteRule ^/(.+) %{ENV:SVR_COMMON}/$1 [NC]
RewriteRule ^/(cruises-IC/(.*)) %{ENV:SVR_CRUISES_IC}/$2 [NC,P]
RewriteCond %{HTTP_HOST} ^desa.cruisebo.*$ [NC]
## Rules of Crusies
RewriteRule ^/(cruise-images/.*) %{ENV:SVR_CRUISES_BO}/$1 [NC,P]
## Redirect nibbler css y js IC
RewriteRule ^/nibbler-js-versioned/(.*) %{ENV:SVR_COMMON}/nibbler-js-versioned/20.0.2/$1 [NC]
RewriteRule ^/nibbler-css-versioned/(.*) %{ENV:SVR_COMMON}/nibbler-css-versioned/20.0.2/$1 [NC]
Revise this Paste