question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browser-sync hide proxy subfolder

See original GitHub issue

We can use browser-sync to proxy our localhost subfolder project with something like this:

// Using localhost sub directories
proxy: "localhost/site1"

The browser-sync URL will look something like http://localhost:3000/site1. It would be great if the subfolder can be hidden so that when I browse http://localhost:3000, it will actually accessing http://localhost/site1.

Really hope to see such feature to be build-in. Maybe with the option for us to choose to hide the subfolder or not.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:7
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
NgYueHongcommented, May 22, 2015

Yeah, but I have lots of projects folder in my server. And it would be troublesome to set a folder as site root every time I run each individual project.

Also, sometimes the folder structure can be complex and long such as:

http://localhost/clientA/projectA/moduleA/public/

It would be great if browser-sync comes with hide sub-folder feature, so that once I run browser-sync from my project folder, I will get clean URL for my project.

0reactions
shinnncommented, May 22, 2015

Of course I hope browser-sync could suit various needs and help every developer, but I’m concerned that the browser-sync project will be overcomplicated if we accept all the feature requests we’ve received almost every day.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browsersync options
Browsersync will wrap your vhost with a proxy URL to view your site. ... Here you can disable/enable each feature individually ghostMode: {...
Read more >
How to disable cross-device action mirroring functionality of ...
Disabling this is very simple: Look for your BrowserSync config file (for me it was at root/node_modules/browser-sync/lib/default.config.js) and ...
Read more >
How to run Browsersync on non-default port - Roots Discourse
Working with Sage 9 for the first time. I use a cloud based development server + IDE (e.g. I can't access http://localhost/) The...
Read more >
Live preview on any device or browser with Browsersync
Use Browsersync with your development site created with Pinegrow ... browser-sync start --proxy "http://127.0.0.1:40001".
Read more >
How to configure and Set Up Gulp Browser-sync - eduCBA
We know that gulp is used to automate the different tasks such as CSS and HTML as well as it also provides the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found