How to use curl command with proxy username and password on Linux or Unix

Posted on in Categories , , , , last updated January 17, 2016

My sysadmin provided me the following proxy details:
       IP: 202.54.1.1
       Port: 3128
       Username: foo
       Password: bar

The settings worked perfectly with Google Chrome and Firefox browser. How do I use it with the curl command? How do I tell the curl command to use my proxy settings from Google Chrome browser?

Reload Squid Proxy Server Without Restarting Squid Daemon

Posted on in Categories , , , , , , , last updated March 31, 2017

I made some changes to the /etc/squid/squid.conf file and issued the command /sbin/service squid restart. However, this command takes way too much time to restart the server. How do I tell squid to just reread the config file and apply new changes under Linux operating systems?

Mediawiki Fix Internal Server Host Names / Redirection In shared Hosting or Proxy Setup

Posted on in Categories , , , , last updated January 27, 2012

Our customer support wiki runs on an internal host (ip:192.168.1.100:300, hostname a-node100.:300) and it is behind the nginx reverse proxy server. However, our Apache server end up displaying internal server name http://a-node100.:300/, which results into an unexpected redirection and timeouts as http://a-node100.:300/ is not accessible over the Internet. How do I force nginx or apache to use the base URL of our server (http://support.example.com/wiki/)?