• 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...

Mr. Goodie2Shoes

Well-known member
#1
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