WordPress Update ohne FTP

Um Plugins oder das gesamte WordPress ohne FTP Server zu aktualisieren, kann der integrierte Mechanismus verwendet werden, der aber erst aktiviert werden muss.

 

Step 1:

chmod -R 777 /var/www/html/wordpress (oder wie dein Pfad ist)

 

Step 2:

nano /var/www/html/wordpress/wp-config.php

folgendes hinzufügen vor /* That’s all, stop editing! Happy blogging. */

define( “FS_METHOD”, “direct” );

IIS alle Anfragen auf eine Seite weiterleiten

Neue Seite erstellen oder in vorhandene web.conf einfügen.

 

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”RedirectAllToRoot” patternSyntax=”Wildcard” stopProcessing=”true”>
<match url=”*” />
<action type=”Redirect” url=”http://dasziel.tld” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Sophos UTM Web Admin / User Portal published over Web Application Firewall

 

To publish the WebAdmin portal via the WAF you need to add a virtual host for NAT.

Traffic from: your Firewall

Service: the port from you WebAdmin portal (4444)

Going to: the virtual host (add a host and choose a available internal IP address)

Destination: your Firewall

Service: the port from you WebAdmin portal (4444)

 

 

 

 

 

 

 

 

 

 

 

 

Add a new real Webserver at the Webserver Protection section

Host: the virtual host from before

Type: HTTPS

Port: the port from you WebAdmin portal (4444)

 

 

 

 

 

 

 

Add a new Virtual Webserver at the Webserver Protection section

Interface: your WAN interface

Domains: choose the certificate for your Domain

Real Webserver: choose the Webserver from before

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Don´t forget to enable every created item!

ISS domain redirect from old domain to new with subdomain

Default web.config file

<configuration>
<system.webServer>
<rewrite>
<rules>

</rules>
</rewrite>
</system.webServer>
</configuration>

 

Add this between <rules> and</rules>

<rule name=”domain_redirect” stopProcessing=”true”>
<match url=”(.*)” />
<conditions>
<add input=”{HTTP_HOST}” pattern=”^www\.olddomain\.de$” />
</conditions>
<action type=”Redirect” url=”https://www.newdomain.de/{R:1}” redirectType=”Permanent” />
</rule>

 

Replace olddomain and newdomain with your value and maybe change the www value to your subdomain.