編輯:關於Android編程
具體如下:
VirtualHost *:80>
DocumentRoot "/data/www/test"
ServerName test.58tech.com
RewriteEngine on
RewriteEngine on
RewriteRule ^/rule$ /rule/ [R]
RewriteRule ^/rule/$ /test2013/5033/test/index.shtml [L,PT]
RewriteRule ^/signup$ /signup/ [R]
RewriteRule ^/signup/$ /s2013/5033/test200545034/index.shtml [L,PT]
<Directory "/data/www/test">
AllowOverride None
Options Includes FollowSymLinks
Order allow,deny
Allow from all
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml .inc
</Directory>
DirectoryIndex /my/test/index/index.shtml
#ErrorLog /dev/null
#LogLevel crit
CustomLog "|/58tech/pkg/apache2/bin/rotatelogs /data/logs/58tech_access_log.%Y%m%d 86400 480" combined
</VirtualHost>
實現如下:
<VirtualHost *:80>
DocumentRoot "/data/www/test"
ServerName test.58tech.com
RewriteEngine on
RewriteEngine on
RewriteRule ^/rule$ /rule/ [R]
RewriteRule ^/rule/$ /test2013/5033/test/index.shtml [L,PT]
RewriteRule ^/signup$ /signup/ [R]
RewriteRule ^/signup/$ /s2013/5033/test200545034/index.shtml [L,PT]
<Directory "/data/www/test">
AllowOverride None
Options Includes FollowSymLinks
Order allow,deny
Allow from all
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml .inc
</Directory>
DirectoryIndex /my/test/index/index.shtml
#ErrorLog /dev/null
#LogLevel crit
CustomLog "|/58tech/pkg/apache2/bin/rotatelogs /data/logs/58tech_access_log.%Y%m%d 86400 480" combined
</VirtualHost>
實現如下
http://test.58tech.com 打開: /my/test/index/index.shtml http://test.58tech.com/rule 打開: /test2013/5033/test/index.shtml 地址欄: http://test.58tech.com/rule/ http://test.58tech.com/signup 打開: /s2013/5033/test200545034/index.shtml 地址欄: http://test.58tech.com/signup/ http://test.58tech.com 打開: /my/test/index/index.shtml http://test.58tech.com/rule 打開: /test2013/5033/test/index.shtml 地址欄: http://test.58tech.com/rule/ http://test.58tech.com/signup 打開: /s2013/5033/test200545034/index.shtml 地址欄: http://test.58tech.com/signup/
從零開始的Android新項目10 - React Native & Redux
本篇來講講 React Native 和 Redux,和其他一上來就啪啪啪丟上來一堆翻譯的東西不同,本文會從簡單的例子入手,讓大家能快速地明白 React Native
Android打造屬於自己的新聞平台(客戶端+服務器)
完全屬於自己的新聞展示平台,展示給大家,希望大家喜歡。一、新聞的數據庫的構建腳本代碼如下:(使用的mysql5.0 數據庫)SET SQL_MODE = NO_AUTO_
Android 多媒體播放API簡單實例
本文調用android的媒體播放器實現一些音樂播放操作項目布局:<LinearLayout xmlns:android=http://schemas.android
從源碼角度剖析Handler機制
android中,在進行耗時操作更新UI用到最多的方法就是Handler了,一般在子線程中進行耗時操作(訪問網絡等),然後發送消息到UI線程(主線程),使得界面得以更新。