小编SOf*_*ual的帖子

PostgreSQL 无法启动。无法加载私钥文件 << server.key >> :键值不匹配

我正在尝试在我的 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)

postgresql linux debian-wheezy

5
推荐指数
1
解决办法
5927
查看次数

仅将一个网站重定向到 https

我有一个带有多个域的服务器。我只想将一个“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)

但这不起作用。我应该纠正什么?

apache-2.4

-4
推荐指数
1
解决办法
1092
查看次数

标签 统计

apache-2.4 ×1

debian-wheezy ×1

linux ×1

postgresql ×1