Skip to content

Instantly share code, notes, and snippets.

View gangsta's full-sized avatar
😎

Karen Harutyunyan gangsta

😎
View GitHub Profile
@gangsta
gangsta / httpd443.md
Last active May 21, 2017 11:54
httpd , apache shows 443 is already in use?

Error

systemctl restart httpd

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443

Solution

This is how we might use the defined type in a Puppet manifest:

apache::vhost { 'foo.example.com':
      port          => '80',
      docroot       => '/var/www/foo.example.com',
      docroot_owner => 'foo',
      docroot_group => 'foo',
      options       => ['Indexes','FollowSymLinks','MultiViews'],
      proxy_pass    => [ { 'path' => '/a', 'url' => 'http://backend-a/' } ],
}

Docker, stop messing with my iptables rules!

Let's say you are using docker on a server available on the Internet. You already have an iptables based firewall configured. Personally, I'm using uif which is a very powerful perl script available in debian. Have a look at a config example.

To tell docker to never make changes to your system iptables rules, you have to set --iptables=false when the daemon starts.

For sysvinit and upstart based systems, you can edit /etc/default/docker. For systemd, you can do that:

mkdir /etc/systemd/system/docker.service.d
cat << EOF > /etc/systemd/system/docker.service.d/noiptables.conf

Red Hat Enterprise Linux OpenStack Platform Installer you can run this command as root to reset the password:

$ sudo foreman-rake permissions:reset Reset to user: admin, password: XXXXXXXXXX

Admin password is stored in Postgres table users inside foreman database:

id | login             | admin | password_hash | password_salt
---+-------------------+-------+---------------+---------------