As root run visudo command. Some examples:
# root and users in group wheel can run anything on any machine as any user
root ALL = (ALL) ALL
%wheel ALL = (ALL) ALL
# bob can run du as root
bob ALL=(root) /usr/bin/du
# bob can run du as root, and is not prompted to input password
bob ALL=(root) NOPASSWD: /usr/bin/du
To run it bob just need to do:
(If it runs just du, it is executed as bob not root)
PS: to run command as another user that is not root use: sudo -u USER CMD
Header set Cache-Control: “no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0″
RewriteRule ^(.*)$ /example/subfolder/$1 [nc]
With this, http://www.domain.com/example/ will show you the contents on http://www.domain.com/example/subfolder.
Amazon’s LB has a health-check feature that will try a GET call to the first vhost that you have on your instances. (alphabetically ordered)
So, if by a chance, the first vhost “aa.example.com.conf” isn’t replying properly to the LB’s GET, your LB will consider that instance off service, which means none of the other vhosts will be serving until you fix whatever is wrong with that first vhost, even if all the other vhosts are working perfectly.