我在Apache 2.2.15 / CentOS 6.9中设置了这个虚拟主机。
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
repositories {
maven {
url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
}
maven {
url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/"
}
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.isap.xrwarehouse"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.journeyapps:zxing-android-embedded:3.0.3@aar'
compile 'com.google.zxing:core:3.2.0'
compile 'com.facebook.stetho:stetho:1.5.0'
compile 'com.uphyca:stetho_realm:2.1.0'
compile project(':swipe-button') //this is the problem library
compile project(':libs:xrappdb')
testCompile 'junit:junit:4.12'
}
在这个/ gallry文件夹中,我存储了许多图像文件。
我有/gallery/.htaccess
<VirtualHost *:80>
DocumentRoot /gallery
ServerName image.example.com
</VirtualHost>
但问题是如果我从http://www.example.com访问该网站,我可以看到预期的图像并拒绝其他网站。但是当我从https://www.example.com访问它时,访问也被拒绝。
我需要从http://image.example.com/images访问https://www.example.com。我一直在寻找答案,但我还没找到。
任何帮助将不胜感激。