我正在尝试在我的 Linux Debian 7.2 服务器上安装 PostgreSQL,但它失败了。
这就是我所做的:
user ~ $ sudo apt-get install postgresql
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
postgresql-9.1 postgresql-client-9.1 postgresql-client-common postgresql-common
Paquets suggérés :
oidentd ident-server locales-all postgresql-doc-9.1
Les NOUVEAUX paquets suivants seront installés :
postgresql postgresql-9.1 postgresql-client-9.1 postgresql-client-common postgresql-common
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de …
Run Code Online (Sandbox Code Playgroud) 我有一个带有多个域的服务器。我只想将一个“site-internet.com”重定向到 ssl 配置。
我想做:
这是我的 apache conf 文件
NameVirtualHost *:80
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^test.site-internet\.com$[NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ http://test.site-internet.com/$1 [NC,R=301,L]
RewriteCond %{HTTP_HOST} ^(.*)\.site-internet\.com$
RewriteCond %{HTTP_HOST} ^site-internet\.com$
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301]
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
但这不起作用。我应该纠正什么?