1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me rewrite these nginx code blocks to Apache derivative...

Discussion in 'Server Configuration and Hosting' started by Mr. Goodie2Shoes, Jan 2, 2015.

  1. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    Here you go: :)
    Code:
       location ~ /assets/(.*?)\.css$ {
         alias /something/css.php;
    
         fastcgi_keep_conn on;
         fastcgi_index index.php;
         include fastcgi_params;
         fastcgi_param REQUEST_CSS $1;
         fastcgi_pass something;
       }
    
       location /assets/styles {
         alias /something/styles;
       }
    
       location /assets/styles/gfnlabs/gfnlabs {
         if (!-f $request_filename) {
           rewrite /assets/styles/gfnlabs/gfnlabs/(.*?)$ /assets/styles/default/gfnlabs/$1 last;
         }
       }
    
       location /assets/js {
         alias /something/js;
       }
    
       location /data {
         alias /something/data;
       }
    
       location /favicon.ico {
         alias /something/favicon.ico;
       }
    
    Thanks! :D
     

Share This Page