waveform wrote:I know XAMPP's httpd.conf file contains the instructions responsible for directing the browser to pull up the XAMPP welcome page.
waveform wrote:For example: What if I was running two servers each with their own config files on the same machine.
waveform wrote:So would it be safe to say that when I type in the loopback address, the browser goes out and looks for any available server on the local machine? So it's standard behavior for a browser to send the loopback request to (any available) server on the local machine, (on port 80 default)
waveform wrote:I thought the 'htdocs' directory was loaded by default
waveform wrote:But it's the 'xampp' sub folder contained with-in 'htdocs' that's actually loaded when localhost is typed in the browser.
waveform wrote:To load your own index, you actually have to go up one level to htdocs.
waveform wrote:The 'xampp' folder must be hard coded into the server.
Altrea wrote:.... The browser just fires a request.
...All the magic routing is done in the operating system itself (network interface, DNS (if the name needs to get resolved).
Nobbie wrote:....in this case it this file called "index.php". This file is coded with very simple PHP and in this file there is a redirection to the folder "xampp". This finally leads to the Xampp Welcome Page - but this is not configured in httpd.conf.
waveform wrote:This I understand. I didn't realize there was a php file with redirection code .But even so, I looked in htdocs/xampp for both html, and php files with the welcome text and didn't find the one with the "Congratulations, XAMPP is working" text. And the root xampp folder at C/xampp only has .bat, and ini files, so it would have to be located in htdocs/xampp.
Users browsing this forum: No registered users and 78 guests