View Single Post
Old 04-11-2017, 12:27 PM   #5
Member
 
Join Date: Nov 2016
Posts: 57
lexsusdk is on a distinguished road
Default

screenshots for what?
I've Assigned IP 79.xxx.xxx.xxx to username. users dns is set up with this ip, for his domain. RDNS(PTR) is also set up but another website appear
http://79.143.183.99/ shows stoltze-saltoft.dk but it must show familiehistorie.eu


<VirtualHost 127.0.0.1:8080>
ServerName familiehistorie.eu
DocumentRoot /var/www/ernlund/data/www/familiehistorie.eu
ServerAdmin webmaster@familiehistorie.eu
AddDefaultCharset UTF-8
AssignUserID ernlund ernlund
CustomLog /var/www/httpd-logs/familiehistorie.eu.access.log combined
ErrorLog /var/www/httpd-logs/familiehistorie.eu.error.log
Include /etc/httpd/conf/vhosts-resources/ernlund/vhost.conf
<FilesMatch "\.ph(p[3-5]?|tml)$">
SetHandler application/x-httpd-php5
</FilesMatch>
ScriptAlias /php-bin/ /var/www/php-bin-isp-php70/ernlund/
SetEnvIf X-Forwarded-Proto https HTTPS=on
DirectoryIndex index.html index.php
ScriptAlias /cgi-bin/ /var/www/ernlund/data/www/familiehistorie.eu/cgi-bin/
AddHandler application/x-httpd-php5 .php .php3 .php4 .php5 .phtml
Action application/x-httpd-php5 /php-bin/php
</VirtualHost>
<Directory /var/www/ernlund/data/www/familiehistorie.eu>
Options +Includes +ExecCGI
</Directory>




server {
server_name familiehistorie.eu ;
charset UTF-8;
index index.html index.php;
disable_symlinks if_not_owner from=$root_path;
include /etc/nginx/vhosts-includes/*.conf;
include /etc/nginx/vhosts-resources/familiehistorie.eu/*.conf;
access_log /var/www/httpd-logs/familiehistorie.eu.access.log;
error_log /var/www/httpd-logs/familiehistorie.eu.error.log notice;
ssi on;
set $root_path /var/www/ernlund/data/www/familiehistorie.eu;
root $root_path;
include /etc/nginx/vhosts-resources/ernlund/*.conf;
location / {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @fallback;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|av i|zip|gz|bz2?|rar|swf)$ {
try_files $uri $uri/ @fallback;
}
location / {
try_files /does_not_exists @fallback;
}
}
location @fallback {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
}
listen 79.143.183.99:80;
listen [2a02:c205:2009:3013::10:1]:80;
}
server {
server_name familiehistorie.eu ;
ssl on;
ssl_certificate "/var/www/httpd-cert/ernlund/familiehistorie.crtca";
ssl_certificate_key "/var/www/httpd-cert/ernlund/familiehistorie.key";
ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
add_header Strict-Transport-Security "max-age=31536000;";
charset UTF-8;
index index.html index.php;
disable_symlinks if_not_owner from=$root_path;
include /etc/nginx/vhosts-includes/*.conf;
include /etc/nginx/vhosts-resources/familiehistorie.eu/*.conf;
access_log /var/www/httpd-logs/familiehistorie.eu.access.log;
error_log /var/www/httpd-logs/familiehistorie.eu.error.log notice;
ssi on;
set $root_path /var/www/ernlund/data/www/familiehistorie.eu;
root $root_path;
listen [2a02:c205:2009:3013::10:1]:443;
listen 79.143.183.99:443;
include /etc/nginx/vhosts-resources/ernlund/*.conf;
location / {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @fallback;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|av i|zip|gz|bz2?|rar|swf)$ {
try_files $uri $uri/ @fallback;
}
location / {
try_files /does_not_exists @fallback;
}
}
location @fallback {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
}
}

Last edited by lexsusdk; 04-11-2017 at 02:33 PM.
lexsusdk is offline   Reply With Quote