Quellcode durchsuchen

add hk-01.bukop.com

master
Gitea vor 5 Jahren
Ursprung
Commit
627ad8996e
2 geänderte Dateien mit 109 neuen und 0 gelöschten Zeilen
  1. +89
    -0
      hk-01/etc/apache2/sites-enabled/rpn.supertraderfx.ayvwd8em49pvoa3g.com.conf
  2. +20
    -0
      hk-01/etc/systemd/system/rpn.service

+ 89
- 0
hk-01/etc/apache2/sites-enabled/rpn.supertraderfx.ayvwd8em49pvoa3g.com.conf Datei anzeigen

@@ -0,0 +1,89 @@
<VirtualHost 103.195.6.218:80>
SuexecUserGroup "#1003" "#1003"
ServerName rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias www.rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias mail.rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com
DocumentRoot /home/rpn/public_html
ErrorLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_error_log
CustomLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_access_log combined
ScriptAlias /cgi-bin/ /home/rpn/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5


ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<Directory /home/rpn/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.3
FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php
FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php7.3
</Directory>
<Directory /home/rpn/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com
RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com
RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.3
FcgidMaxRequestLen 1073741824
</VirtualHost>
<VirtualHost 103.195.6.218:443>
SuexecUserGroup "#1003" "#1003"
ServerName rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias www.rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias mail.rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com
ServerAlias admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com
DocumentRoot /home/rpn/public_html
ErrorLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_error_log
CustomLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_access_log combined
ScriptAlias /cgi-bin/ /home/rpn/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5

ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/


<Directory /home/rpn/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.3
FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php
FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php7.3
</Directory>
<Directory /home/rpn/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com
RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com
RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.3
FcgidMaxRequestLen 1073741824
SSLEngine on
SSLCertificateFile /home/rpn/ssl.cert
SSLCertificateKeyFile /home/rpn/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
</VirtualHost>

+ 20
- 0
hk-01/etc/systemd/system/rpn.service Datei anzeigen

@@ -0,0 +1,20 @@
[Unit]
Description=rpn supertraderfx payment gateway Service
Documentation=man:fail2ban(1)
After=network.target firewalld.service
PartOf=firewalld.service

[Service]
Type=simple
WorkingDirectory=/home/rpn/go
ExecStartPre=/bin/mkdir -p /home/rpn/go/logs
ExecStart=/home/rpn/go/rpn
# if should be logged in systemd journal, use following line or set logtarget to sysout in fail2ban.local
# ExecStart=/usr/bin/fail2ban-server -xf --logtarget=sysout start
PIDFile=/var/run/rpn.pid
Restart=on-failure
RestartPreventExitStatus=0 255

[Install]
WantedBy=multi-user.target


Laden…
Abbrechen
Speichern