01-27-2009
Implement https on apache 2.0.55
I have been trying to implement https auto-redirect for a particular links. I have three configuration file /etc/apache2/apache2.conf, /etc/apache2/sites-available/default, and /etc/apache2/sites-available/ssl. In /etc/apache2/sites-available/default file I added following script
<IfModule mod_proxy.c>
ProxyRequests Off
RewriteEngine on
# send all http to https
RewriteCond %{HTTPS} !=on
RewriteRule (.*)$ https://myhost.edu/~userna/link.php/$1 [R]
</IfModule>
But it is not working.
Can somebody tell me what am I missing?
Thanks in advance.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi folks.
i know that this is not a realī unix problem, itīs an apache-webserver problem, but maybe you can help me?
i have installed apache & mod_ssl, done a certificate, and configured my server well, but apache only understands "http://servername", not "https://servername".
any ideas?
... (1 Reply)
Discussion started by: loitschix
1 Replies
2. Shell Programming and Scripting
Hi all,
could any of you please help me on my problem..
we are doing FTP (one report out put) from one server to another server through unix shell script program.
Due to the network issues, some times FTP process is hanging.
So we planned to modify the existing program with the following... (2 Replies)
Discussion started by: kishore_jasthi
2 Replies
3. Shell Programming and Scripting
hi
i have a file like
1,"A","B"
2,"C","D"
1,"E","F"
3,"G","H"
in output i need like
3,"G","H"
1,"E","F"
2,"C","D"
1,"A","B" (12 Replies)
Discussion started by: angel12345
12 Replies
4. UNIX for Dummies Questions & Answers
Hi new to the forum,
I have a Apache server on CentOS which hosts a web site. I've set up the SSL which has been tested as I can access my website via http and https.
I would like to redirect all browsers to use https instead of http. I have created the htaccess file which contains 'Allow... (3 Replies)
Discussion started by: Sai245
3 Replies
5. UNIX for Dummies Questions & Answers
I have recently setup a HTTP server using Apache.
This was my first install of Apache, so I am very new to it.
What I would now like to do is setup HTTPS for my server.
Unfortunately, the official Apache 2.2 manual doesn't cover setting up HTTPS, and using Google search engine I have found... (2 Replies)
Discussion started by: SSL
2 Replies
6. Web Development
i read thru a few article how to do it, but i could not get it to work the way i want it.
vi ../httpd.conf
Redirect permanent /dev https://servername/portal/
when i type servername, works fine.
my goal is to type dev, and it takes me to https://servername/portal/ (4 Replies)
Discussion started by: lawsongeek
4 Replies
7. Cybersecurity
Is it possible to rule out in alert all HTTPS traffic or rule out all the HTTPS trafic from the alerts on snort ? (3 Replies)
Discussion started by: drd0spt
3 Replies
8. Solaris
Hi Guys,
I have recently started reciving below Error message
Failed HTTPS transfer to https://supportfiles.sun.com/curl
whenever I run
/usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q -v
from all Servers.
Looks like the SSL certificate as Expired.
Whenever I type... (4 Replies)
Discussion started by: manalisharmabe
4 Replies
9. UNIX for Advanced & Expert Users
Hello
I googled for "tcpdump view HOST http headers" -- that fine
However can we do same for HTTPS like after the HTTPS gets decrypted by Apache ?
I think this is legitimate on the server where the site is hosted since at some point the Apache itself needs to get the HOST patrameter in... (1 Reply)
Discussion started by: coolatt
1 Replies
LEARN ABOUT LINUX
a2enconf
A2ENCONF(8) System Manager's Manual A2ENCONF(8)
NAME
a2enconf, a2disconf - enable or disable an apache2 configuration file
SYNOPSIS
a2enconf [ [-q|--quiet] configuration]
a2disconf [ [-q|--quiet] configuration]
DESCRIPTION
This manual page documents briefly the a2enconf and a2disconf commands.
a2enconf is a script that enables the specified configuration file within the apache2 configuration. It does this by creating symlinks
within /etc/apache2/conf-enabled. Likewise, a2disconf disables a specific configuration part by removing those symlinks. It is not an
error to enable a configuration which is already enabled, or to disable one which is already disabled.
Note that many configuration file may have a dependency to specific modules. Unlike module dependencies, these are not resolved automati-
cally. Configuration fragments stored in the conf-available directory are considered non-essential or being installed and manged by reverse
dependencies (e.g. web scripts).
OPTIONS
-q, --quiet
Don't show informative messages.
-m, --maintmode
Enables the maintainer mode, that is the program invocation is effectuated automatically by a maintainer script. This switch should
not be used by end users.
-p, --purge
When disabling a module, purge all traces of the module in the internal state data base.
EXIT STATUS
a2enconf and a2disconf exit with status 0 if all configurations are processed successfully, 1 if errors occur, 2 if an invalid option was
used.
EXAMPLES
a2enconf security
a2disconf charset
Enables Apache security directives stored in the security configuration files, and disables the charset configuration.
FILES
/etc/apache2/conf-available
Directory with files giving information on available configuration files.
/etc/apache2/conf-enabled
Directory with links to the files in conf-available for enabled configuration files.
SEE ALSO
apache2ctl(8), a2enmod(8), a2dismod(8).
AUTHOR
This manual page was written by Arno Toell <debian@toell.net> for the Debian GNU/Linux distribution, as it is a Debian-specific script with
the package.
14 February 2012 A2ENCONF(8)