![]() * options (clear at least the Browsing & Download History and Cache settings from the earliest time possible from the drop down). Similar results in Firefox can be achieved with the *History - > Clear History. In Chrome you can use chrome://settings/clearBrowserData. You will (of course) want to restart your WAMP (Apache) server and flush your browser cache (you may even want to do it twice). You shouldn't need to change anything about the DocumentRoot in nf but you should change the ServerName entry in nf, specifically to something other than "localhost" (e.g. There is are ServerName and DocumentRoot entries for localhost in the main nf file, too LevelForFileTypesDetection2 // 0 disables File types detection. This configuration should give you access to "localhost" in your browser by either typing "localhost" or "127.0.0.1". I have tried with -config, SiteDomain, config with actual webaddress as well LevelForWormsDetection0 // 0 disables Worms detection. can obviously be Directory information or anything else you wish to include but is not required. "localhost" in ChromeĭocumentRoot "d:/wamp/"logs/" common I would structure your virtual host entries in nf as follows: # Assuming we wish to type in e.g. PidFile: "D:/wamp/bin/apache/apache2.4.23/logs/httpd.pid"ĭefine: APACHE_DIR=D:/wamp/bin/apache/apache2.4.23 Mutex default: dir="D:/wamp/bin/apache/apache2.4.23/logs/" mechanism=default Main ErrorLog: "D:/wamp/logs/apache_error.log" ServerRoot: "D:/wamp/bin/apache/apache2.4.23" Port * namevhost enginter.local (D:/wamp/bin/apache/apache2.4.23/conf/extra/nf:43)Īlias port * namevhost yegane.local (D:/wamp/bin/apache/apache2.4.23/conf/extra/nf:57)Īlias *:80 localhost (D:/wamp/bin/apache/apache2.4.23/conf/extra/nf:30) Httpd -S gives: VirtualHost configuration:ĭefault server enginter.local (D:/wamp/bin/apache/apache2.4.23/conf/extra/nf:43) I'm confused myself and it has taken my time for a whole week. Once I restarted the system and the problem was gone. I tried clearing the DNS cache here chrome://net-internals/#dns And also tried resetting everything to default in chrome://flags but no luck! ServerAlias ErrorLog "logs/"ĬustomLog "logs/" commonĪnd this is my hosts file (in Windows 10): 127.0.0.1 localhost ServerAlias ErrorLog "logs/"ĬustomLog "logs/" common The problem is that whenever I enter localhost in the addressbar, It immediately redirects to enginter.local !Īnd Chrome shows this error for all of local URLs: I have googled a lot of websites and done a few tips but nothing worked. Hopefully you can set it up as you wish and have all dev tools working together.I have a problem that only takes place in Google Chrome and it is OK in Firefox and IE. The VirtualHost IP is normally not necessary, but as the form suggests you can choose any IP format number that starts with 127 (except the localhost number: 127.0.0.1). ![]() ![]() (And then create another dir in my working space for project backups.) That is also the directory to copy all files that belongs to the site and what you then transfer to the live site.įor an easy workflow I would prefer to make the virtual host directory to also be the project directory in the editor. That’s the same path as you see in Explorer. VirtualHost folder path: c:/wamp64/www/1/ I suggest you could actually use the live domain name with a nonexisting top-level of the same lenght as the live site, like “1” for the actual domain “ ”. I think this automagic “wamp virtual hosts form” is just as complicated as the manual configuring would be. What is the absolute path to the folder of the Virtual Host - How do I fill in the wampserver Virtual Host form? What is the address of my Virtual Host (it is not 127.0.0.1)? In this directory what is my my VHost name for the wamp form? (I honestly don’t think it was able to replicate the manual setup.) The screen shot you posted reminds me of that horrible experience. But to be honest, I was so confused I dumped MAMP Pro and went back to setting it up as I knew how. I did have a link to an equivalent setup for XAMPP, but it seems to be dead now, although here’s a forum post that discusses it: Xampp/virtual hosts - #9 by maya90Īt one point a few years ago I succumbed to the temptation to grab MAMP Pro, because setting up these things is supposed to be automatic. If you get to this point, all your local and remote file paths are the same, which is really nice. I use MAMP on Mac, and found some great resources years ago which showed me how to set up MAMP as a root server. To keep it simple, I’s suggest testing the form script online and not worrying about all this extra setup. Will that take care of php which will be created for a form that will be included in the site?Īs I understand it, setting up a form locally is rather tricky and requires some extra steps (setting up mail sending facility from your local computer or something).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |