Discussion:
Per User alias/rewrite
(too old to reply)
j***@fonsen.com.tw
2015-12-07 08:39:26 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:07:09 UTC
Permalink
Post by j***@fonsen.com.tw
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 reload/restart apache
Jerry Stuckle
2015-12-09 14:32:41 UTC
Permalink
Post by i***@gmail.com
Post by j***@fonsen.com.tw
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 reload/restart apache
Impossible. httpd.conf is only read when Apache is reloaded or
restarted. Any changes made will not go into effect until then.
--
==================
Remove the "x" from my email address
Jerry Stuckle
***@attglobal.net
==================
Continue reading on narkive:
Loading...