在apache的htaccess文件中设置公共变量

时间:2016-04-05
[xuca@localhost www.xker.com]$ cd html/
[xuca@localhost html]$ ls -a
. .. css help.php .htaccess images index.php js pages .svn views
[xuca@localhost html]$ cat .htaccess
setENV Root_Path /home/xuca/public_html/www.salewell.com
SetENV Root_STATIC /home/files/static
setENV Cache_Path /var/www/htmlcache
setENV Base_img
http://www.boss.com/~xuca/www.salewell.com/html/images
setENV Base_JS http://www.boss.com/~xuca/www.salewell.com/html/js
setENV Base_CSS
http://www.boss.com/~xuca/www.salewell.com/html/css
setENV Base_PAGES
http://www.boss.com/~xuca/www.salewell.com/html/pages
setENV Base_STATIC http://www.boss.com/~xuca/www.salewell.com/html/STATIC
SetEnv DB_cft_db PDO_MYSQL/192.168.1.95/3306/cft_db/test//utf8
setENV Root_HTML /home/xuca/public_html/www.salewell.com/html
SetEnv TRADE_SERVER 192.168.1.95,20093,5
setENV Base_HTML
http://www.boss.com/~xuca/www.salewell.com/html
[xuca@localhost html]$ cat .htaccess
setENV Root_Path /home/xuca/public_html/www.salewell.com
SetENV Root_STATIC /home/files/static
setENV Cache_Path /var/www/htmlcache
setENV Base_img
http://www.boss.com/~xuca/www.salewell.com/html/images
setENV Base_JS http://www.boss.com/~xuca/www.salewell.com/html/js
setENV Base_CSS
http://www.boss.com/~xuca/www.salewell.com/html/css
setENV Base_PAGES
http://www.boss.com/~xuca/www.salewell.com/html/pages
setENV Base_STATIC http://www.boss.com/~xuca/www.salewell.com/html/STATIC
SetEnv DB_cft_db PDO_MYSQL/192.168.1.95/3306/cft_db/test//utf8
setENV Root_HTML /home/xuca/public_html/www.salewell.com/html
SetEnv TRADE_SERVER 192.168.1.95,20093,5
setENV Base_HTML
http://www.boss.com/~xuca/www.salewell.com/html
[xuca@localhost html]$ svn up       
U    views/user/add_user_info.html
上一条:Microsoft JET Database Engine 错误 '80004005' 错误解决办法 下一条:Apache负载均衡设置方法: mod_proxy

相关文章

最新文章