Skip to main content

Rewrite urls in WHM for Symfony plugin

Comments

2 comments

  • cPanelKenneth
    The internal webserver (cpsrvd) can handle PHP applications. There is no mod_rewrite like functionality. If your application relies upon URLs that look like /service/mail/block/1.2.3.4 or /index.php/service/mail/block/1.2.3.4 then it may not work. If the URLs can be handled as traditional GET parameters (e.g. /index.php?service=mail&block=1.2.3.4), then it should work.
    0
  • Alvaro Flano
    My current workaround is to create an index.php file on each of the expected locations (so the server doesn't thow a 404) and it changes the request's URI and requires my main index.php. This seems to be plausible so far. -- UPDATE -- It actually works. This way I have now my Symfony app running as a WHM Addon. Some other few adjustments must be made, but at the end it works great.
    0

Please sign in to leave a comment.