Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Frial
  • Order by date
  1. Frial

    Apache vhost - block treatment

    Hi, I hadn't thought of doing this so simply, thank you very much! I added one more condition if vhost does'nt contain servername: $1 == "ServerName"{ srv = $2 ProxyPass_found = 0 } $1 == "ProxyPass"{ ProxyPass_found = 1 print "Vhost#"srv $2 } $1 == "</VirtualHost>" { if...
  2. Frial

    Apache vhost - block treatment

    Yes, it's more simple :) When vhost doesn't contain "ProxyPass" value, when I read those scripts, I think output is empty. I must call print function after set variables no?
  3. Frial

    Apache vhost - block treatment

    Hi mikrom, Thank you very much for your help, that's perfect [thumbsup2] I thought I would have to process the files by blocks, but that was not a good idea.
  4. Frial

    Apache vhost - block treatment

    Hi all, I'm a beginner's awk. I have a file apache like this: <VirtualHost *:443> ServerName site1.compagny.org DocumentRoot /var/www/html/ SSLEngine on SSLProxyEngine on SSLCertificateFile /etc/httpd/ssl/company.crt SSLCertificateKeyFile...

Part and Inventory Search

Back
Top