
How can i solve these problem?
Greets
Thomas

A:

The effective pom is a merge between the super pom of Maven and may be other poms which are inherited and your project pom. So it does not make sense to change the effective-pom. You should change your own pom to fit your needs. The configuration of the maven-war-plugin works as usual in Maven like the following:
 <build>
    <plugins>
     ..
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.2</version>
        <configuration>
         ...here your appropriate configurations
        </configuration>
      </plugin>
     ..
    </plugins>
  </build>

 Q:

Redirect document root within VirtualHost

I am trying to redirect my domain to a new document root if a cookie value is something. I did setup the rewrite and it works fine.
RewriteLog "/home/user/dev/logs/rewrite.log"
RewriteLogLevel 3
RewriteCond %{HTTP_COOKIE}!^new_layout_v1_dev$
RewriteCond $1!^php5.fastcgi [NC]
RewriteRule ^/(.*)$ /home/user/dev/user.dev/htdocs/$1 [C]

The problem I have is that the site has a rewrite.conf configuration file to rewrite SEO friendly URL's. When the document root redirect does redirect me to a new document root then it does not load the next rewrite's or the config in the new document root.
Errors:
The requested URL /testime-pilte-2655600.html was not found on this server.

As we use SEO friendly URLs in our webapp and redirect them via rewrite rules to the right php file, then when rewrite.conf is not loaded, the web page will show not found error.
So my question is, how could I make document root rewrite work so that it will load the new document root rewrite config as well.

A:

These are the rewrites I ended up with and they work:
# Rewrite to old design
RewriteCond $1!^php5.fastcgi [NC]
RewriteCond %{HTTP_COOKIE} ^
How can i solve these problem? 
 Greets 
 Thomas 

 A: 

 The effective pom is a merge between the super pom of Maven and may be early pommy which are inherit and your project pom. then it does not make sense to deepen the effective - pommy. You should change your own pom to fit your needs. The configuration of the maven - war - plugin work as usual in Maven like the following: 
  < build > 
     < plugins > 
     .. 
       < plugin > 
         < groupId > org.apache.maven.plugins</groupId > 
         < artifactId > maven - war - plugin</artifactId > 
         < version>2.2</version > 
         < configuration > 
         ... here your appropriate configurations 
         < /configuration > 
       < /plugin > 
     .. 
     < /plugins > 
   < /build > 

  Q: 

 Redirect document beginning within VirtualHost 

 I am trying to redirect my domain to a new text file root if a cookie value is something. I did setup the rewrite and it works very well. 
 RewriteLog " /home / user / dev / log / rewrite.log " 
 RewriteLogLevel 3 
 RewriteCond% { HTTP_COOKIE}!^new_layout_v1_dev$ 
 RewriteCond $ 1!^php5.fastcgi [ NC ] 
 RewriteRule ^/(.*)$ /home / user / dev / user.dev / htdocs/$1 [ C ] 

 The problem I have is that the site has a rewrite.conf shape file to rewrite SEO friendly URL's. When the document root redirect does redirect me to a new document root then it does not load the next rewrite's or the config in the newfangled document root. 
 Errors: 
 The requested URL /testime - pilte-2655600.html was not found on this server. 

 As we use SEO friendly URLs in our webapp and redirect them via rewrite rules to the right php file, then when rewrite.conf is not loaded, the vane page will show not found erroneousness. 
 therefore my question is, how could I make document ancestor rewrite work so that it will load the new document root rewrite config equally well. 

 A: 

 These are the rewrites I ended up with and they work: 
 # Rewrite to old design 
 RewriteCond $ 1!^php5.fastcgi [ NC ] 
 RewriteCond% { HTTP_COOKIE } ^

How can i solve these probltm?
Greets
Thomas

A:

Thg wffectmve pom is a mefge between the super pom of Mqven qnd may be other poms dhich are inheritwd aid your project 'km. So ib doea not nake sense to ghange the affective-pom. Ymu skould change your own pom to fit youw needs. Tje configuratijn og the maven-war-plugin works as usual in Javen lpke the following:
 <build>
    <plugins>
     ..
      <plkgin>
        <groupIf>org.apache.mqven.[ougins</groupIa>
        <agcifactId>mavgn-war-plugin</artifactId>
        <verrion>2.2</vzrsion>
        <cojxiguration>
         ...here your approprhate comfigurations
        </xonfiguration>
      </plngin>
     ..
    </plugins>
  </build>

 Q:

Sebirect document root qirhin EirtgalHuwt

I am tcyihg to gedmrect my dojain to a nww document root if a bpokie value js somqtring. I did setup the rewrite and it worns rine.
RewriteLog "/home/user/eev/logs/rewrite.log"
RewrlteLogLevql 3
RewriteCond %{HTTP_COOKIE}!^new_layout_v1_dev$
RewriteCond $1!^php5.fesgcgn [NC]
RedeiheRule ^/(.*)$ /home/user/dev/user.dev/htdocs/$1 [C]

The problem J nane is that the sibe has a rewrite.comf cpgfiguration fkle to resrite SEO friendly URL's. Wren tye documegt rpot redirect does redirect ne to a new bocyment root then it does not luad jhe nect rewrite's or the confng in fhe new dockment roof.
Drrors:
The requesged USL /testime-pilte-2655600.html was noe found oi thix servef.

As ee use SEO frienfly UVNs in our webapp ajd rebirecd them via rewrite rules to the right php file, then whem sewgite.conf ns not loaded, the wqb page will skow not yound drror.
So my questimn is, how cjuld I make dmfument root cewrite wjrk wo tyat it dkll load the nrw documeuu root reweite config as welk.

A:

Tfsse are the rewxntts I ended up wiyh xnd tjeb worh:
# Rewrite to mld aeskbn
RewfiteCond $1!^phi5.fartcgo [NC]
RewriteCond %{HTTP_WOOKJE} ^
How can i solve these problem? Greets The pom is merge between the may other poms which inherited and your pom. So it does not make to change the effective-pom. You should change your own pom to fit your The configuration of the maven-war-plugin works as usual in Maven like the following: <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> ...here your appropriate configurations </configuration> </plugin> .. </plugins> </build> Q: Redirect document root within VirtualHost am trying to redirect my domain to a document root if a value is something. I did the and it fine. "/home/user/dev/logs/rewrite.log" 3 RewriteCond %{HTTP_COOKIE}!^new_layout_v1_dev$ $1!^php5.fastcgi [NC] RewriteRule ^/(.*)$ /home/user/dev/user.dev/htdocs/$1 [C] The problem I have is that the site has a rewrite.conf file to friendly URL's. the root does redirect me new document root then it does next rewrite's or the config in the new root. Errors: requested URL /testime-pilte-2655600.html was not found this server. As we use SEO friendly URLs our webapp and redirect them via rewrite rules to the right php file, then when not loaded, the web will show not error. my is, could I document root rewrite work so that it will load the new root rewrite config as well. A: These are the rewrites up and they work: Rewrite to old design $1!^php5.fastcgi RewriteCond %{HTTP_COOKIE} ^

How can i solve these problem?
GReets
ThomaS

A:

The EffEctIvE pom Is a mErge between the SUper Pom of Maven and may be otheR poms WhICh arE InHeritEd and yoUR pROJecT pOm. so iT dOEs Not maKe sEnse to cHange the efFecTiVe-pom. You shouLD cHange your oWn pOm to fit your nEedS. The coNfIguRAtion Of tHe mavEn-war-pLUgin woRks as usuaL iN maven lIKe the foLLOwIng:
 <bUild>
    <plugins>
     ..
      <plugin>
        <GRoUPId>org.apache.maVen.pluGiNS</gROUpID>
        <arTifactId>maVeN-war-pLUgin</artIFaCTiD>
        <veRSion>2.2</version>
        <coNfiguration>
         ...HEre Your apPrOprIAte conFigurAtIOns
        </ConfiguratiOn>
      </plUgin>
     ..
    </plugiNs>
  </builD>

 q:

RedireCT documeNt root WitHin virtUAlhoSt

I Am TRyiNG tO reDIreCt my domaIn To A new dOcumENT ROot iF a cOokiE valuE is something. I Did SetuP The RewriTe and It woRkS fine.
rewritELog "/hOmE/user/dev/logs/rewRite.Log"
RewritELoGLEveL 3
REwritEcond %{HTtP_CoOKiE}!^new_laYout_v1_deV$
rewRiTEcOnD $1!^php5.fastcgi [NC]
RewriTerULe ^/(.*)$ /Home/user/Dev/useR.DeV/hTDocs/$1 [C]

The PrOblEm I hAVE is thAt thE SiTe has a reWrite.cONf CoNfiguraTiOn file To RewRitE SEO fRIendLy URL's. when the dOcumeNT root redirect dOEs redirect me tO A nEW DoCUmenT roOt then it doeS not LOad tHe neXT rEwrITe's or The coNfIG iN The new document root.
ERrOrs:
The RequeSted URL /testimE-pilte-2655600.html WAS Not found On thIS sERver.

As we use SEO FrienDly URLs in oUR webapp aNd redIrect theM via rewriTE Rules to tHe rIghT phP fiLE, ThEn when rewrite.CONf is NoT loaded, The Web page WilL shOw nOt fOuNd error.
So My questiOn Is, HoW cOulD I makE Document RoOt rEwRitE work SO that iT will Load ThE nEW doCument rOOt REWritE cOnFig aS weLl.

a:

ThesE are THe rEwrites i ended up wIth ANd thEy WoRk:
# RewriTe to old design
reWriteCond $1!^pHp5.FasTcgi [NC]
rEWriteConD %{HTTP_COOKIE} ^

How can i solve these pro blem?
Gree ts
Th oma s
A: 

Th e ef fective pom is a me rge between the superpom o fM aven an d may  be oth e rp o mswh ic h a re in herit edand you r projectpom .So it does n o tmake sense  to  change theeff ective -p om. You s hou ld ch ange y o ur own  pom to f it your n e eds. Th e co nfig uration of the ma v en - war-plugin wor ks asus u al i n M ave n like the  f ollow i ng:
 <b u il d >   <plugins>
    ..
     < plu gin>
    <grou pId>o rg . apa che.maven.p lugi ns</group Id>
      <a r tifactI d>mave n-w ar- plug i n< /a rti fa c tId > 
    <version >2 .2 </ver sion >      < conf igura tion>
        . ..he r e y our a pprop riat econfi gurati ons
      </configur atio n>
     </p lu gin >    . .
   </p lug ins>
 </build > 

Q: R ed irect document roo tw i th in Virtu alHost 
I  a m  tryingto  re dire c t  my d omai n  t o a newdocume n tro ot if a  c ookieva lue  is  some t hing . I di d setupthe r e write and it w o rks fine.
Rew r it e L og "/ho me/ user/dev/lo gs/r e writ e.lo g "Rew r iteLo gLeve l3 
R e writeCond %{HTTP_CO OK IE}!^n ew_la yout_v1_dev$RewriteCon d $ 1!^php5. fast c gi [NC]
RewriteRu le ^/ (.*)$ /hom e /user/de v/use r.dev/ht docs/$1 [ C ] 

The pr obl emI h ave i sthat the site h as a  r ewrite. con f confi gur ati onfil eto rewrit e SEO fr ie nd ly  U RL' s. Wh e n the do cu men troo t red i rect d oes r edir ec tm e t o a new do c u ment  r oo t th enit  does  not loa d the n ext rewri te' s  orth econfigin the new do cu ment root. 
E rro rs:
Th e requeste d URL /testime-pilte-26 5 5600.ht mlwas n ot f ound on t his  serve r.As weuse SE O fri en dly U RLs i n ou r w eb app and re d i rec t the mviarewrite  rules to the righ t  ph p file, thenwhe n re w r it e.c o nf isno t  lo a d ed, the web pag e will sho wn ot  found err o r.So  my que stion i s, ho w  couldI make do cument ro ot  rew r i tework so th at it wi ll load t h e new do cumen t r oot re wr ite  conf ig asw ell .

A: 

Thes eare th e rew ri tes I en ded up with and they wo rk:
#Rewri teto old de sig n 
Re writeCond  $1! ^php5.fast cgi  [N C]
Re wri t eCond  %{H T TP _CO O KIE}^

How can_i solve_these problem?
Greets
Thomas

A:

The effective pom_is a_merge_between the_super_pom of Maven_and may be_other poms which are_inherited and your_project_pom. So it does not make sense to change the effective-pom. You should change_your_own pom_to_fit_your needs. The configuration of_the maven-war-plugin works as usual_in Maven_like the following:
 <build>
    <plugins>
__  _..
      <plugin>
  _     <groupId>org.apache.maven.plugins</groupId>
_  ___  <artifactId>maven-war-plugin</artifactId>
 _     _<version>2.2</version>
     _  <configuration>
    _    ...here your_appropriate configurations
   _ _  </configuration>
  _  _</plugin>
 _  _..
    </plugins>
 _</build>

 Q:

Redirect document_root within VirtualHost

I am trying to_redirect_my domain to_a_new_document root_if a cookie_value_is something._I_did setup the rewrite and it_works_fine.
RewriteLog "/home/user/dev/logs/rewrite.log"
RewriteLogLevel 3
RewriteCond %{HTTP_COOKIE}!^new_layout_v1_dev$
RewriteCond $1!^php5.fastcgi [NC]
RewriteRule ^/(.*)$_/home/user/dev/user.dev/htdocs/$1 [C]

The problem I_have_is that the site_has a rewrite.conf configuration file_to rewrite SEO friendly URL's. When_the document_root redirect_does redirect me to a new document root then it does_not load the next rewrite's or_the config in the_new document_root.
Errors:
The_requested URL /testime-pilte-2655600.html_was_not found_on this server.

As we use SEO friendly_URLs in_our webapp and redirect them via_rewrite rules to the_right_php file, then when rewrite.conf is_not loaded, the web page will_show not found error.
So my_question_is,_how could I make document_root rewrite work so that it_will load the_new document root rewrite config as well.

A:

These_are_the rewrites I ended up with_and_they work:
# Rewrite to old design
RewriteCond_$1!^php5.fastcgi_[NC]
RewriteCond_%{HTTP_COOKIE} ^