我想在相同的IP中创建网站但具有不同的子文件夹,例如:
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
android {
// :
// Snips the rest of configuration.
// :
compileOptions {
encoding "UTF-8"
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.innahema:collections-query:0.2.9'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'me.tatarka:gradle-retrolambda:3.2.3'
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2' //fix lint issue
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
配置:
http://192.168.0.1/a/ --> /var/www/site_a/
但是如果你输入http://192.168.0.1(没有/ a或/ b),它会显示与http://192.168.0.1/a/相同的页面,我希望http://192.168.0.1/没有显示。
怎么做?
答案 0 :(得分:0)
指定DocumentRoot的几行:
#Root folder
DocumentRoot /var/www/site_a/
将您的http://192.169.0.1/指向/ a文件夹,您可能希望将其指向其他内容,以便将其加载到其他文档中。