Redirect the HTTP Requests to HTTPS in Apache Webserver

The best way to do a redirect from HTTP to HTTPS site is to use the Redirect directive in the Apache virtual host configuration. If you have a site configured at https://sample.com and if you want to redirect the http://sample.com requests to the https site it can be achieved as follows:

References:

[1] https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
[2] https://wiki.apache.org/httpd/RedirectSSL

Sound card issue on Fedora 23 with Intel HDA

I recently installed Fedora 23 in my Desktop and everything was working great except the sound.

I did the ldconfig and it didn’t solve it.

Hardware detail fetched by

$ alsa-info.sh --no-upload

[Extracted]
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)

$ lspci -nn | grep -i audio

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 04)

And then used the speaker-test utility to test the speakers

$ speaker-test

speaker-test 1.0.29

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
/usr/bin/pulseaudio: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Playback open error: -111,Connection refused

So I installed the libgomp library with dnf and sound started working

$ sudo dnf install libgomp

Previously I tried uninstalling the alsa-plugins-pulseaudio as described in the reference below and it removed the proprietary media plugins, skype etc all that was installed. So it’s better to avoid following as described in reference[1]

Reference:
[1] https://fedoraproject.org/wiki/How_to_debug_sound_problems