As I'm using url rewriting to access my Symfony2 application, it is directly available from
http://my_application.my_domain.net
Now I'd like to be able to access the dev environment simply using a different port like:
http://my_application.my_domain.net:8081
If you don't want to use
That does pretty much the same job, here the solution:
After having allowed your external IP to
my_application/web/app_dev.php
Configured
/etc/apache2/ports.conf
to tell Apache to listen in the additional portSimply duplicate the applications vhost (if you are using one)
and change the file pointed by the url rewriter
Finally activate the new vhost