You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this proxy.sh's feature should be inside of Cpanel but they didn't add this feature still. But no problem, I'm using your script well. But I want to add a small change in this script. Please can you add an "usage" message to script? For example:
#!/bin/bashecho"========================================================="echo"==!! cPanel Apache Reverse Proxy !!=="echo"==!! Usage: proxy.sh {account_username} {subdomain/domain} {local_proxy_path}"echo"========================================================="echo""
DOMAIN=$2
USER=$1
LOCAL=$3if [[ -z"$USER" ]];thenecho"Usage: proxy.sh {account_username} {subdomain/domain} {local_proxy_path}"echo"Set a valid cPanel User "exit 1
fiif [[ -z"$DOMAIN" ]];thenecho"Usage: proxy.sh {account_username} {subdomain/domain} {local_proxy_path}"echo"Set a valid Domain Name"exit 1
fiif [[ -z"$LOCAL" ]];thenecho"Usage: proxy.sh {account_username} {subdomain/domain} {local_proxy_path}"echo"Set a valid Local Proy Path"exit 1
fi
Something like that. Thanks.
The text was updated successfully, but these errors were encountered:
I think this proxy.sh's feature should be inside of Cpanel but they didn't add this feature still. But no problem, I'm using your script well. But I want to add a small change in this script. Please can you add an "usage" message to script? For example:
Something like that. Thanks.
The text was updated successfully, but these errors were encountered: