In my hosts file I have myproject.local using 199.199.99.99. I'm using Vagrant with a private ip of 199.199.99.99 and when I visit myproject.local in the browser it works fine. But sometimes it will take too long to connect or I will accidentally refresh the page before Vagrant is up and the browser redirects me to myproject.local:8080 no matter what...Unless I go clear the browser cache, then it will work again. It's a pain having to clear the cache every time this happens. Is there anyway to stop it from redirecting me?
When trying to access local private ip, the browser redirects to projectname.local:8080?
150 views Asked by PCSSH At
1
There are 1 answers
Related Questions in APACHE
- Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Cannot load modules/mod_dav_svn.so into server
- How to ignore case in regexp mapping in a .htaccess rewrite rule?
- Oracle Http server ISNT-07551
- I cant access file directory with PHP local host on XAMPP. it just shows one of the files I have in my visual studio code
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Issue with Django --> Apache WSGI deployment
- changing the node version used by apache web server
- Apache: How can I redirect to a subfolder with a URL param but serve required content via the main URL?
- Why/How does Apache auto-include "DHE" TLS1.2 ciphers while nginx needs "dhparams" file?
- Set up MX records in apache/Ubuntu to point to external mail server
- How to proxy to another port?
- Php can not upload file out of /var/www/html even after disabling Selinux
- Serve static site on S3 + CloudFlare with Apache retaining the source URL
Related Questions in VAGRANT
- Using Vagrant provisioning for Shell Scripts
- Django application hosted in vagrant not available at localhost
- Hash sum mismatch when using vagrant up and apt-get install on MacOS
- Error when molecule through vagrant start VM in vbox (Windows, WSL2)
- Vagarant vm installation issue
- Vagrant can't use default network of libvirt. Vagrant + libvirt, Linux. no network with matching name 'default' (Libvirt::Error)
- Unable to access a Webapp on Tomcat in Vagrant box
- How do I add a C file from my computer to my Github clone repository so i can send it to the actual repository on Github?
- Vagrant transfer file from Guest VM to another Guest VM
- Can't connect to a pod running on different node with k3s and virtualbox
- symlink protocol error when setting up storage:link on vagrant homestead
- PhpStorm not working with Xdebug 3.3 running in Vagrant box using nginx and PHP 8.3
- Laravel homestead Can't Preform Vagrant Up Error Constraints: >= 13.0.0, < 14.0.0
- HTML and Vagrant
- Error: [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
Related Questions in HOSTS
- In Android emulator with sdk 30 or higher, hosts file is reset to default
- [Errno 13]:Permission Denied when trying to edit the hosts file with a script in .ps1, in .py and in .bat. Hosts file with full permission to edit
- Ansible "Failed to resolve hostname inventory_hostname (Name or service not known)"
- nginx: how to redirect a domain name based request to a specific IP so they can't bypass a WAF
- Is it possible to block ONLY the homepage of YouTube but not its videos using /etc/hosts?
- How to access localhost through NGROK tunnel running on Docker Windows?
- How to access Next.js Application from a fixed Hostname in Local Environment?
- Replace ajax response of a json file from a website to a local json file
- /etc/hosts not working when connected to WIFI MacOS
- Confusing behavior when attempting to use the HOSTALIASES environment variable
- How to set up redirection from one page to another within the same site on a Windows computer
- getaddrinfo ENOTFOUND localcdn
- Spring server.address=localhost cannot connect from Node.js fetch api
- How to make Chrome allow http request to custom local domain?
- zsh: permission denied: /etc/hosts
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
199.199.99.99 isn't a private IP address. Try update your vagrantfile with a
forwarded_portsconfiguration (if haven't already), and replace yourstatic IPwith a non-conflicting private IP address.On my box, it looks something like: