read

This guide is for OSX machines

  1. Install Homebrew http://brew.sh/

  2. Install NGINX with homebrew: brew install nginx

  3. Open /usr/local/etc/nginx/nginx.conf with your favourite editor and add the server configuration:

    server {
        listen 80;
        # donĀ“t use *.local on mac - its reserved
        server_name www.mywebsite.mobile;
    
        location / {
                proxy_pass http://www.mywebsite.dev/;
        }
    }
    
  4. Start nginx via sudo nginx

  5. Optionally: test if your config is OK by typing sudo nginx -t

  6. Go to the settings of your mobile device and enter the IP of your local machine as HTTP proxy

  7. Open www.mywebsite.mobile (or whatever you have entered above)

Blog Logo

Tom Raithel


Published

comments powered by Disqus
Image

frontcoded.com

A dumping ground for web development stuff

Back to Overview