<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Webserver on Janik von Rotz</title>
    <link>https://janikvonrotz.ch/tags/webserver/</link>
    <description>Recent content in Webserver on Janik von Rotz</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 15 Nov 2013 10:46:47 +0000</lastBuildDate>
    <atom:link href="https://janikvonrotz.ch/tags/webserver/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Simple Redirect with Apache2</title>
      <link>https://janikvonrotz.ch/2013/11/15/simple-redirect-with-apache2/</link>
      <pubDate>Fri, 15 Nov 2013 10:46:47 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2013/11/15/simple-redirect-with-apache2/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s obvious Apache2 is no more the first choice for a webserver, depending on the requirments &lt;!-- raw HTML omitted --&gt;Ngnix &lt;!-- raw HTML omitted --&gt;and IIS are now much more attractive.&lt;/p&gt;&#xA;&lt;p&gt;Maybe you&amp;rsquo;ve already updated to Ngnix or IIS want to redirect from the old website to the new website in case Apache is still a dependency.&lt;/p&gt;&#xA;&lt;p&gt;The most simple solution to redirect a website domain or url to a new website is this apache virtual host configuration:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&#xA;&amp;lt;VirtualHost *:80&amp;gt;&#xA;  ServerName domain.ch&#xA;  ServerAlias www.domain.ch&#xA;  ServerAdmin webmaster@domain.ch&#xA;  ErrorLog /var/log/apache2/domain.ch-error.log&#xA;  CustomLog /var/log/apache2/domain.ch-access.log combined&#xA;  Redirect permanent / https://www.somewhere.ch/aktuell/whatever/&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Latest version of this snippet: &lt;!-- raw HTML omitted --&gt;&lt;a href=&#34;https://gist.github.com/7481550&#34;&gt;https://gist.github.com/7481550&lt;/a&gt;&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
