Discussion:
How to do Per User alias/rewrite
(too old to reply)
i***@gmail.com
2015-12-07 14:54:13 UTC
Permalink
Hi:

Our customers access our service like
https://ourservice.com/customer1/orders/list,
https://ourservice.com/customer1/books/read,
https://ourservice.com/customer1/cars/loan,

while /customer1/ can be /customer2/, /customer3/...

We can let server write a text file to list customer names, or we have folder names in path like /opt/ourapp/app/config/customer1, so we can make apache check if customer name exist

Our images, js, css locate in /customer1/img, /customer1/js, /customer1/css

If url not our customer, like /invalidcustomer, we wish to redirect to another site, like http://ourweb.com

How should I configure httpd.conf?

Thanks,
i***@gmail.com
2015-12-07 15:06:32 UTC
Permalink
Post by i***@gmail.com
Our customers access our service like
https://ourservice.com/customer1/orders/list,
https://ourservice.com/customer1/books/read,
https://ourservice.com/customer1/cars/loan,
while /customer1/ can be /customer2/, /customer3/...
We can let server write a text file to list customer names, or we have folder names in path like /opt/ourapp/app/config/customer1, so we can make apache check if customer name exist
Our images, js, css locate in /customer1/img, /customer1/js, /customer1/css
If url not our customer, like /invalidcustomer, we wish to redirect to another site, like http://ourweb.com
How should I configure httpd.conf?
Thanks,
Need to do it without restart or reload apache

Loading...