Apache SSL redirect to main folder

Michele

I have the following website structure

/var/www/
   |
   |--> home/
          |
          |--> index.html

in /etc/apache2/sites-enables/000-default the http virtual host is so configured

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    Redirect permanent / https://192.168.17.73/
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

</VirtualHost>

When I go to 192.168.17.73/home/index.html I'm correctly redirected to https://192.168.17.73/home/index.html.

However, when I type, 192.168.17.73/home/ the redirection brings me to https://192.168.17.73/home/home/, which doesn't exist.

Michele

This ended to be a problem caused by a gedit preference to create a backup copy and autosave the files.

Solution. After disabling those two features, I deleted any file like httpd.conf.save or httpd.conf~ and all worked fine.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Hostgator redirect main folder

From Dev

Apache redirect to another folder

From Dev

htaccess redirect rules, main folder and subfolders redirect

From Dev

htaccess redirect in main folder and sub folder

From Dev

Apache2 redirect to another domain with ssl

From Dev

CentOS + apache subdomain always redirect to main domain

From Dev

Apache: redirect to non SSL page if TLS negotiation fails

From Dev

Subdomains Always Redirect To Main Domain - Apache2 VirtualHosts & Debain

From Dev

Using Apache Rewrite Rules to Redirect Multiple Domains to Main Domain

From Dev

How to redirect folder without affecting its files in apache?

From Dev

How to redirect folder without affecting its files in apache?

From Dev

Redirect folder access to file (but not redirect files in folder)

From Dev

How to Configure Apache 2.2.14 on Ubuntu 10.04 to use SSL only (Redirect loop)

From Dev

nginx redirect loop with ssl

From Dev

SSL needed on redirect?

From Dev

Apache2 read home folder directory when main domain is in /var/www

From Dev

How redirect subdomain to folder

From Dev

VBScript Redirect to Network Folder

From Dev

Redirect request to folder with .htaccess

From Dev

htaccess rewrite/redirect folder

From Dev

How to redirect a folder in htaccess

From Dev

Redirect folder to another with htaccess

From Dev

Redirect root to folder with .htaccess

From Dev

.htaccess - Redirect subdomain to folder

From Dev

redirect to https folder in .htaccess

From Dev

redirect htaccess except a folder

From Dev

Htaccess, redirect if folder exists

From Dev

.htaccess redirect root to folder

From Dev

Redirect with htaccess to folder

Related Related

HotTag

Archive