VPRAŠANJA WEBMin PercNET Forumi Audio Media Oglasi WEBDisk DDLeWDisk MServerPSTube PSDDLMedia PSMForums PSMedia PCSNETMedia PCSNET

Oznaka teme: SERVER

Forumi Oznaka teme: SERVER

Prikaz teme 1 (od skupno 1)
    • Teme
    • Zadnji prispevek
    • ℹ️ Namestitev Spletni Disk sFTP Server Naredi prvo vhsote in apliciraj certbot: V apache.conf določi poti vseh apps, v 000-dafault.conf določi hoste in root za apps: apache.conf # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs/2.4/ for detailed information about # the directives and /usr/share/doc/apache2/README.Debian about Debian specific # hints. # # # Summary of how the Apache 2 configuration works in Debian: # The Apache 2 web server configuration in Debian is quite different to # upstream's suggested way to configure the web server. This is because Debian's # default Apache2 installation attempts to make adding and removing modules, # virtual hosts, and extra configuration directives as flexible as possible, in # order to make automating the changes and administering the server as easy as # possible. # It is split into several files forming the configuration hierarchy outlined # below, all located in the /etc/apache2/ directory: # # /etc/apache2/ # |-- apache2.conf # | `-- ports.conf # |-- mods-enabled # | |-- *.load # | `-- *.conf # |-- conf-enabled # | `-- *.conf # `-- sites-enabled # `-- *.conf # # # * apache2.conf is the main configuration file (this file). It puts the pieces # together by including all remaining configuration files when starting up the # web server. # # * ports.conf is always included from the main configuration file. It is # supposed to determine listening ports for incoming connections which can be # customized anytime. # # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ # directories contain particular configuration snippets which manage modules, # global configuration fragments, or virtual host configurations, # respectively. # # They are activated by symlinking available configuration files from their # respective *-available/ counterparts. These should be managed by using our # helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See # their respective man pages for detailed information. # # * The binary is called apache2. Due to the use of environment variables, in # the default configuration, apache2 needs to be started/stopped with # /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not # work with the default configuration. # Global configuration # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the Mutex documentation (available # at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/etc/apache2" # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # #Mutex file:${APACHE_LOCK_DIR} default # # The directory where shm and other runtime files will be stored. # DefaultRuntimeDir ${APACHE_RUN_DIR} # # PidFile: The file in which the server should record its process # identification number when it starts. # This needs to be set in /etc/apache2/envvars # PidFile /var/run/apache2/apache2.pid # # Timeout: The number of seconds before receives and sends time out. # TimeOut 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive on # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 5 # These need to be set in /etc/apache2/envvars User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} # # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it'd be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # ErrorLog ${APACHE_LOG_DIR}/error.log #CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog # LogLevel: Control the severity of messages logged to the error_log. # Available values: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the log level for particular modules, e.g. # "LogLevel info ssl:warn" # LogLevel info # Include module configuration: IncludeOptional mods-enabled/*.load IncludeOptional mods-enabled/*.conf # Include list of ports to listen on Include ports.conf # Sets the default security model of the Apache2 HTTPD server. It does # not allow access to the root filesystem outside of /usr/share and /var/www. # The former is used by web applications packaged in Debian, # the latter may be used for local directories served by the web server. If # your system is serving content from a sub-directory in /srv you must allow # access here, or in any related virtual host. <Directory /> Options FollowSymLinks AllowOverride None Require all denied </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> <Directory /var/www/html> Options Indexes FollowSymLinks Allowoverride all Require all granted </Directory> <Directory /var/www/ddl> Options Indexes FollowSymLinks Allowoverride all Require all granted </Directory> # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <FilesMatch "^\.ht"> Require all denied </FilesMatch> # # The following directives define some format nicknames for use with # a CustomLog directive. # # These deviate from the Common Log Format definitions in that they use %O # (the actual bytes sent including headers) instead of %b (the size of the # requested file), because the latter makes it impossible to detect partial # requests. # # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended. # Use mod_remoteip instead. # LogFormat "%h %v %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %v %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %v %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent LogFormat "%h %v:%p %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" detailed   # Include generic snippets of statements IncludeOptional conf-enabled/*.conf # Include the virtual host configurations: IncludeOptional sites-enabled/*.conf # Tvoj server name je localhost!!! Ti ne moreš bit server name poddomena od t-2.net nikakor to je njihov route za tebe!!!! ServerName localhost 000-dafault.conf ########################################################################################################## ## Restriction direct IP access Perc Scripts apache config custom Block direct access to custom Error page! <VirtualHost *:80> ServerName scadaizola.ddns.net ServerAdmin webmaster@localhost DocumentRoot /var/www/html DirectoryIndex index.php ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combinedio env=!dontlog <Directory /var/www/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> RewriteEngine On # RewriteOptions inherit # Block .svn, .git RewriteRule \.(svn|git)(/)?$ - [F] # Recommended: XSS protection <IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" Header set X-Content-Type-Options: "nosniff" #Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure #Header set Strict-Transport-Security "max-age=31536000" #Header set X-Robots-Tag none; #Header set X-Download-Options noopen; #Header set Referrer-Policy "no-referrer" # Header set X-Permitted-Cross-Domain-Policies none; # Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self'; object-src 'self'" </IfModule> ## primer preusmeritve vseh ip na svetu in držav na točno določeno stran če pridejo na port 80 lahko pokockaš po državah kam # RewriteEngine On GeoIPEnable On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(A1|A2|O1|AD|AE|AF|AG|AI|AL|AM|AO|AP|AQ|AR|AS|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BJ|BL|BM|BN|BO|BQ|BR|BS|BT|BV|BW|BY|BZ|CA|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO|CR|CU|CV|CW|CX|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EE|EG|EH|ER|ES|ET|EU|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GG|GH|GI|GL|GM|GN|GP|GQ|GR|GS|GT|GU|GW|GY|HK|HM|HN|HR|HT|HU|ID|IE|IL|IM|IN|IO|IQ|IR|IS|IT|JE|JM|JO|JP|KE|KG|KH|KI|KM|KN|KP|KR|KW|KY|KZ|LA|LB|LC|LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MD|ME|MF|MG|MH|MK|ML|MM|MN|MO|MP|MQ|MR|MS|MT|MU|MV|MW|MX|MY|MZ|NA|NC|NE|NF|NG|NI|NL|NO|NP|NR|NU|NZ|OM|PA|PE|PF|PG|PH|PK|PL|PM|PN|PR|PS|PT|PW|PY|QA|RE|RO|RS|RU|RW|SA|SB|SC|SD|SE|SG|SH|SJ|SK|SL|SM|SN|SO|SR|SS|ST|SV|SX|SY|SZ|TC|TD|TF|TG|TH|TJ|TK|TL|TM|TN|TO|TR|TT|TV|TW|TZ|UA|UG|UM|US|UY|UZ|VA|VC|VE|VG|VI|VN|VU|WF|WS|YE|YT|ZA|ZM|ZW)$ RewriteRule ^(.*)$ https://scadaizola.ddns.net/country.html [L] ## TO JE DIREKTIVA GEOIP NE MOREŠ NAKAKOR NA TA SERVER PORT 80 ALI KATERIKOLI DRUGI WEBPORT SE PRAVI 443 <Location /> SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE EE BlockCountry SetEnvIf GEOIP_COUNTRY_CODE PL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE ZA BlockCountry SetEnvIf GEOIP_COUNTRY_CODE VN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE FM BlockCountry SetEnvIf GEOIP_COUNTRY_CODE CF BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AF BlockCountry SetEnvIf GEOIP_COUNTRY_CODE KP BlockCountry SetEnvIf GEOIP_COUNTRY_CODE KR BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE HK BlockCountry SetEnvIf GEOIP_COUNTRY_CODE ID BlockCountry SetEnvIf GEOIP_COUNTRY_CODE TW BlockCountry SetEnvIf GEOIP_COUNTRY_CODE TH BlockCountry SetEnvIf GEOIP_COUNTRY_CODE SG BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE GQ BlockCountry SetEnvIf GEOIP_COUNTRY_CODE UA BlockCountry SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IR BlockCountry # Block Anonimous Proxy Servers SetEnvIf GEOIP_COUNTRY_CODE A1 BlockCountry # Block Asia Pacific Region SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry # Block Armed Forces America All SetEnvIf GEOIP_COUNTRY_CODE AA BlockCountry # Block Armed Forces Europe All SetEnvIf GEOIP_COUNTRY_CODE AE BlockCountry # Block Armed Forces Pacific All #SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry # Block All Oceania islands and regions UK Australian Pacific SetEnvIf GEOIP_COUNTRY_CODE OC BlockCountry # Block All Statelite internet provider anonymous and public "Satellite Provider" SetEnvIf GEOIP_COUNTRY_CODE A2 BlockCountry # Block All "Other Country" Anonimous and other country hiden SetEnvIf GEOIP_COUNTRY_CODE O1 BlockCountry Deny from env=BlockCountry </Location> # Disable HTTP 1.0 Protocol RewriteEngine On RewriteCond %{THE_REQUEST} !HTTP/1.1$ RewriteRule .* - [F] # Timeout value configuration # Timeout 300 RewriteCond %{SERVER_NAME} =errorpage.ddns.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost> <VirtualHost *:80> ServerName sandiwebscada.ddns.net ServerAdmin sandi.poberaj@gmail.com RewriteEngine On #Redirect permanent / https://sandiwebscada.ddns.net/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combinedio env=!dontlog # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf # Recommended: XSS protection <IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" Header set X-Content-Type-Options: "nosniff" </IfModule> # Rewrite engine oz. prepisovanje skriptov in generiranje novih virtualno izvedljivih skriptov daš samo enkrat ON in velja za vse # nadaljne spodnje direktive štekenzi. # # GeoIP Blocking Countries RewriteEngine On # Block .svn, .git RewriteRule \.(svn|git)(/)?$ - [F] GeoIPEnable On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(A1|A2|O1|AD|AE|AF|AG|AI|AL|AM|AO|AP|AQ|AR|AS|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BJ|BL|BM|BN|BO|BQ|BR|BS|BT|BV|BW|BY|BZ|CA|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO|CR|CU|CV|CW|CX|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EE|EG|EH|ER|ES|ET|EU|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GG|GH|GI|GL|GM|GN|GP|GQ|GR|GS|GT|GU|GW|GY|HK|HM|HN|HR|HT|HU|ID|IE|IL|IM|IN|IO|IQ|IR|IS|IT|JE|JM|JO|JP|KE|KG|KH|KI|KM|KN|KP|KR|KW|KY|KZ|LA|LB|LC|LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MD|ME|MF|MG|MH|MK|ML|MM|MN|MO|MP|MQ|MR|MS|MT|MU|MV|MW|MX|MY|MZ|NA|NC|NE|NF|NG|NI|NL|NO|NP|NR|NU|NZ|OM|PA|PE|PF|PG|PH|PK|PL|PM|PN|PR|PS|PT|PW|PY|QA|RE|RO|RS|RW|SA|SB|SC|SD|SE|SG|SH|SJ|SK|SL|SM|SN|SO|SR|SS|ST|SV|SX|SY|SZ|TC|TD|TF|TG|TH|TJ|TK|TL|TM|TN|TO|TR|TT|TV|TW|TZ|UA|UG|UM|UY|UZ|VA|VC|VE|VG|VI|VN|VU|WF|WS|YE|YT|ZA|ZM|ZW)$ RewriteRule ^(.*)$ https://scadaizola.ddns.net/country.html [R,L] <Location /> SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE EE BlockCountry SetEnvIf GEOIP_COUNTRY_CODE PL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE ZA BlockCountry SetEnvIf GEOIP_COUNTRY_CODE VN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE FM BlockCountry SetEnvIf GEOIP_COUNTRY_CODE CF BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AF BlockCountry SetEnvIf GEOIP_COUNTRY_CODE KP BlockCountry SetEnvIf GEOIP_COUNTRY_CODE KR BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE HK BlockCountry SetEnvIf GEOIP_COUNTRY_CODE ID BlockCountry SetEnvIf GEOIP_COUNTRY_CODE TW BlockCountry SetEnvIf GEOIP_COUNTRY_CODE TH BlockCountry SetEnvIf GEOIP_COUNTRY_CODE SG BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE GQ BlockCountry SetEnvIf GEOIP_COUNTRY_CODE UA BlockCountry SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IR BlockCountry # Block Anonimous Proxy Servers SetEnvIf GEOIP_COUNTRY_CODE A1 BlockCountry # Block Asia Pacific Region SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry # Block Armed Forces America All SetEnvIf GEOIP_COUNTRY_CODE AA BlockCountry # Block Armed Forces Europe All SetEnvIf GEOIP_COUNTRY_CODE AE BlockCountry # Block Armed Forces Pacific All #SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry # Block All Oceania islands and regions UK Australian Pacific SetEnvIf GEOIP_COUNTRY_CODE OC BlockCountry # Block All Statelite internet provider anonymous and public "Satellite Provider" SetEnvIf GEOIP_COUNTRY_CODE A2 BlockCountry # Block All "Other Country" Anonimous and other country hiden SetEnvIf GEOIP_COUNTRY_CODE O1 BlockCountry Deny from env=BlockCountry </Location> # Disable HTTP 1.0 Protocol RewriteEngine On RewriteCond %{THE_REQUEST} !HTTP/1.1$ RewriteRule .* - [F] # Timeout value configuration # Timeout 300 Alias /static/ /home/webscada/app/solar_cybro/static/ <directory "/home/webscada/app/solar_cybro/static/"> Require all granted </directory>   # solar cybro web application data directory Alias /data/ /home/webscada/app/solar_cybro/data/ <directory "/home/webscada/app/solar_cybro/data/"> Require all granted </directory>   # location of solar cybro wsgi startup file WSGIScriptAlias / /home/webscada/app/solar_cybro/solar_cybro.wsgi <directory "/home/webscada/app/solar_cybro/"> # Order deny,allow Require all granted </directory> RewriteCond %{SERVER_NAME} =sandiwebscada.ddns.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost> <VirtualHost *:80> ServerName poberaj.ddns.net ServerAdmin sandi.poberaj@gmail.com DocumentRoot /var/www/ddl DirectoryIndex index.php <Directory /var/www/ddl/> # Options -Indexes +FollowSymLinks -ExecCGI -Includes -MultiViews +IncludesNoExec # AllowOverride Limit Options FileInfo Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combinedio env=!dontlog RewriteEngine On # RewriteOptions inherit # Block .svn, .git RewriteRule \.(svn|git)(/)?$ - [F] # Recommended: XSS protection <IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" Header set X-Content-Type-Options: "nosniff" #Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure #Header set Strict-Transport-Security "max-age=31536000" #Header set X-Robots-Tag none; #Header set X-Download-Options noopen; #Header set Referrer-Policy "no-referrer" # Header set X-Permitted-Cross-Domain-Policies none; # Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self'; object-src 'self'" </IfModule> ## primer preusmeritve vseh ip na svetu in držav na točno določeno stran če pridejo na port 80 lahko pokockaš po državah kam # RewriteEngine On GeoIPEnable On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(A1|A2|O1|AD|AE|AF|AG|AI|AL|AM|AO|AP|AQ|AR|AS|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BJ|BL|BM|BN|BO|BQ|BR|BS|BT|BV|BW|BY|BZ|CA|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO|CR|CU|CV|CW|CX|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EE|EG|EH|ER|ES|ET|EU|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GG|GH|GI|GL|GM|GN|GP|GQ|GR|GS|GT|GU|GW|GY|HK|HM|HN|HR|HT|HU|ID|IE|IL|IM|IN|IO|IQ|IR|IS|IT|JE|JM|JO|JP|KE|KG|KH|KI|KM|KN|KP|KR|KW|KY|KZ|LA|LB|LC|LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MD|ME|MF|MG|MH|MK|ML|MM|MN|MO|MP|MQ|MR|MS|MT|MU|MV|MW|MX|MY|MZ|NA|NC|NE|NF|NG|NI|NL|NO|NP|NR|NU|NZ|OM|PA|PE|PF|PG|PH|PK|PL|PM|PN|PR|PS|PT|PW|PY|QA|RE|RO|RS|RU|RW|SA|SB|SC|SD|SE|SG|SH|SJ|SK|SL|SM|SN|SO|SR|SS|ST|SV|SX|SY|SZ|TC|TD|TF|TG|TH|TJ|TK|TL|TM|TN|TO|TR|TT|TV|TW|TZ|UA|UG|UM|US|UY|UZ|VA|VC|VE|VG|VI|VN|VU|WF|WS|YE|YT|ZA|ZM|ZW)$ RewriteRule ^(.*)$ https://scadaizola.ddns.net/country.html [L] ## TO JE DIREKTIVA GEOIP NE MOREŠ NAKAKOR NA TA SERVER PORT 80 ALI KATERIKOLI DRUGI WEBPORT SE PRAVI 443 <Location /> SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE EE BlockCountry SetEnvIf GEOIP_COUNTRY_CODE PL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE ZA BlockCountry SetEnvIf GEOIP_COUNTRY_CODE VN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE FM BlockCountry SetEnvIf GEOIP_COUNTRY_CODE CF BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AF BlockCountry SetEnvIf GEOIP_COUNTRY_CODE KP BlockCountry SetEnvIf GEOIP_COUNTRY_CODE KR BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE HK BlockCountry SetEnvIf GEOIP_COUNTRY_CODE ID BlockCountry SetEnvIf GEOIP_COUNTRY_CODE TW BlockCountry SetEnvIf GEOIP_COUNTRY_CODE TH BlockCountry SetEnvIf GEOIP_COUNTRY_CODE SG BlockCountry SetEnvIf GEOIP_COUNTRY_CODE AL BlockCountry SetEnvIf GEOIP_COUNTRY_CODE GQ BlockCountry SetEnvIf GEOIP_COUNTRY_CODE UA BlockCountry SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry SetEnvIf GEOIP_COUNTRY_CODE IR BlockCountry # Block Anonimous Proxy Servers SetEnvIf GEOIP_COUNTRY_CODE A1 BlockCountry # Block Asia Pacific Region SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry # Block Armed Forces America All SetEnvIf GEOIP_COUNTRY_CODE AA BlockCountry # Block Armed Forces Europe All SetEnvIf GEOIP_COUNTRY_CODE AE BlockCountry # Block Armed Forces Pacific All #SetEnvIf GEOIP_COUNTRY_CODE AP BlockCountry # Block All Oceania islands and regions UK Australian Pacific SetEnvIf GEOIP_COUNTRY_CODE OC BlockCountry # Block All Statelite internet provider anonymous and public "Satellite Provider" SetEnvIf GEOIP_COUNTRY_CODE A2 BlockCountry # Block All "Other Country" Anonimous and other country hiden SetEnvIf GEOIP_COUNTRY_CODE O1 BlockCountry Deny from env=BlockCountry </Location> # Disable HTTP 1.0 Protocol RewriteEngine On RewriteCond %{THE_REQUEST} !HTTP/1.1$ RewriteRule .* - [F] # Timeout value configuration # Timeout 300 ## Redirect na ssl RewriteCond %{SERVER_NAME} =poberaj.ddns.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost> NE POZABIT VSE TE REDIRECTE ZAKOMENTIRAT TO NAREDI CERTBOT KO GA APLICIRAŠ. Zdaj maš server u nullo, kadarkoli rabiš bazo in userja ustvarit greš s tvojim super user root koda sql uni user npr. poberaj dolga koda ne menjaj kode root sql naj to en račun. sudo mysql --user=root --password= CREATE DATABASE appbaza; CREATE USER 'appuser'@'localhost' IDENTIFIED BY 'rURzfXcxTs98kHMVkYJHJkc4PFFS967Z'; GRANT ALL PRIVILEGES ON appbaza.* to 'appuser'@'localhost'; FLUSH PRIVILEGES; EXIT; VEDNO KARKOLI RABIŠ APPS ZA TV, ZA CMS, FORUM, VEDNO ISTO NAREDIŠ BAZA, USER, PASS IN FLUSH ALL PRIVILEGIJES POL ČE RABIŠ GREŠ V PHPMYADMIN IN VSAKI BAZ ČE RABI JO OMEJIŠ SAMO ODKLJUKAJ POOBLASTILO KAJ JA KAJ NE, ALI ZAŽGEŠ V TERMINALU WEBMIN SQL ISTI KURAC SAMO MORAŠ VETET VSE TERMINAL KOMANDE SQL.  

      Temo je pričel: Boris Perc in: Zasebno: ℹ️ Sandi WEB Scada

    • 0
    • 1
    • 4 years, 6 months nazaj

Prikaz teme 1 (od skupno 1)
Translate 🇸🇮 »