Configuration of single URL
Appearance
Auto-generated from the uploaded PDF Configuration_of_single_URL.pdf. This is an extracted-text rendering for searchability; see the original PDF for exact formatting, diagrams, tables, and images.
Configuration of single URL Install python yum install nginx python3 python3-pip pip3 install flask Now make directory mkdir /zimbra-login Now go in to the dir cd /zimbra-login/ List the dir ls python3 -m venv venv source venv/bin/activate pip3 install flask requests Make dir. mkdir static mv single.conf /root/ Unzip the dar file tar xvfz single_url.tar.gz ls cd zimbra-login/ ls Copy the app.py to zimbra-login cp app.py /zimbra-login/ cp -pvr static templates /zimbra-login/ cd /zimbra-login/ cp app.py app.py.org vi app.py vi login.html Install tmux Yum install tmux Go into timux Run python script Come out from tmux Ctrl + b then d vi ne_ldap-import.sh Make two files for NE and OSE mv ldap-import.sh ne-ldap-import.sh cp ne-ldap-import.sh ose-ldap-import.sh vi ose-ldap-import.sh cp * /opt/ cd /opt/ vi single.conf cp single.conf single.conf.org Now copy single.conf to /etc/nginx/conf.d/ cp single.conf /etc/nginx/conf.d/ nginx -t systemctl start nginx systemctl enable nginx ip a cat single.conf cat /opt/ne-ldap-import.sh Change the parameters accordingly Install openldap-clients yum install openldap-clients Run the script and check in file. sh ne-ldap-import.sh vi ne-ldap-import.sh sh ne-ldap-import.sh vi ose-ldap-import.sh COMPLETED