我有一台装有Ubuntu 18.04的服务器,并且已安装在SERPOSCOPE上
这是该网站的链接:
https://serposcope.serphacker.com/en/doc/install.html
通过访问服务器的IP地址并在末尾添加端口号7134来访问SERPOSCOPE。
有效。
我希望可以从子域serp.domain.com访问SERPOSCOPE
我设置了LAMP并设置了虚拟主机,但是我需要添加7134才能访问SERPOSCOPE
如何使用端口80?
<VirtualHost *:80>
ServerAdmin contact@domaine.com
ServerName serp.domaine.com
RewriteEngine on
RewriteRule ^ https://serp.domaine.com%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin contact@domaine.com
ServerName serp.domaine.com
DocumentRoot /var/www/serp-domaine-com/
<Directory /var/www/serp-domaine-com>
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/serp.domaine.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/serp.domaine.com/privkey.pem
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
Header always set X-Content-Type-Options "nosniff"
Header always set X-XSS-Protection "1; mode=block"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Download-Options "noopen"
Header always set X-Permitted-Cross-Domain-Policies "none"
Header always set Content-Security-Policy "default-src https: data: wss: 'unsafe-inline' 'unsafe-eval'"
Header set Set-Cookie HttpOnly;Secure
</VirtualHost>
</IfModule>