1

I'm trying to set something up on my server.

Say there's 2 developers, AAA and BBB, and there browsers contain AAA or BBB in there user agent string. I have 3 directories in the folder /home/dev/, public_html, public_html_AAA, and public_html_BBB. Is it possible to route the developer to there respective folder, and everybody else to just public_html?

I've seen this about BrowserMatch and SetEnvIf, which seems like it could be part of the solution, but I don't know how I'd fit it in.

Here's an example VirtualHost config.

<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    DocumentRoot /home/dev/public_html
    ServerName dev.example.com
    ErrorLog /home/dev/logs/apache_log
</VirtualHost>
TMH
  • 143

0 Answers0