alias stopped working

Problems with the Windows version of XAMPP, questions, comments, and anything related.

alias stopped working

Postby Xyzzyx » 19. September 2013 08:22

I created a file apache/conf/extra/httpd-custom.conf with the following:

Code: Select all
Alias /WebDev "/WebDev"
   <Directory "/WebDev">
        AllowOverride AuthConfig
        Require all granted
    </Directory>

Alias /OpenSim "/OpenSim"
   <Directory "/OpenSim">
        AllowOverride AuthConfig
        Require all granted
    </Directory>


and in apache/conf/httpd.conf I added the line:

Code: Select all
Include "conf/extra/httpd-custom.conf"


(as per http://community.apachefriends.org/f/viewtopic.php?f=16&t=53045 )

It worked just great for a month or two, then suddenly it stopped working for the 'WebDev' directory, but continued to work just fine for the 'OpenSim' directory. Both directories on on the drive root, as is the XAMPP parent directory.

I've tried deleting the WebDev entry, restarting XAMPP, then adding it back in and restarting XAMPP. That didn't have any effect. I've also tried rearranging with the WebDev entry following the OpenSim directory, also with no effect. I'm not even sure how to start troubleshooting this because the 'OpenSim' entry is working just fine, and they had both been working just fine and no changes were made to XAMPP, Apache, MySQL, or PHP (the only modules I'm running). What do I need to do to get it working again?

Using Win 7 & XAMPP 1.8.1
User avatar
Xyzzyx
 
Posts: 10
Joined: 14. March 2013 09:17
Operating System: Windows 7 Pro

Re: alias stopped working

Postby Xyzzyx » 23. September 2013 05:14

Well, I gave up and completely wiped & reinstalled xampp. Now running v1.8.3. After setting up as above, it is still not working for the WebDev folder, nor it it working for the OpenSim folder either.

Please help!
User avatar
Xyzzyx
 
Posts: 10
Joined: 14. March 2013 09:17
Operating System: Windows 7 Pro

Re: alias stopped working

Postby JJ_Tagy » 23. September 2013 12:05

I tried what you have and it works just fine for me. There must be something else going on.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: alias stopped working

Postby Nobbie » 23. September 2013 22:18

Show us the error log.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: alias stopped working

Postby Xyzzyx » 29. September 2013 05:09

[s]No errors in the console log to show![/s] EDIT: added error logs

What happens is that I start xampp, start Apache and MySQL. Navigating to localhost in my browser brings up the xampp page, which also shows no errors. 'Status' on the xampp page shows everything active (except Tomcat, which I disabled). PHPmyAdmin also works.

When for example opening a php file in Firefox from the WebDev directory, it obviously isn't processing the php. Viewing the source via Firefox displays the php code in red. When trying to run OpenSim from the OpenSim folder, it (OpenSim) just crashes instantly, the same way it does when I forget to run xampp first.

It's like xampp is just ignoring the alias lines in the conf files.

apache error.log
Code: Select all
[Sun Sep 29 16:50:42.761287 2013] [ssl:warn] [pid 3420:tid 244] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Sep 29 16:50:42.776887 2013] [core:warn] [pid 3420:tid 244] AH00098: pid file F:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Sep 29 16:50:43.010887 2013] [ssl:warn] [pid 3420:tid 244] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Sep 29 16:50:43.026487 2013] [mpm_winnt:notice] [pid 3420:tid 244] AH00455: Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.3 configured -- resuming normal operations
[Sun Sep 29 16:50:43.026487 2013] [mpm_winnt:notice] [pid 3420:tid 244] AH00456: Server built: Feb 23 2013 12:42:00
[Sun Sep 29 16:50:43.026487 2013] [core:notice] [pid 3420:tid 244] AH00094: Command line: 'f:\\xampp\\apache\\bin\\httpd.exe -d F:/xampp/apache'
[Sun Sep 29 16:50:43.026487 2013] [mpm_winnt:notice] [pid 3420:tid 244] AH00418: Parent: Created child process 3408
[Sun Sep 29 16:50:43.525688 2013] [ssl:warn] [pid 3408:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Sep 29 16:50:43.790888 2013] [ssl:warn] [pid 3408:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sun Sep 29 16:50:43.822088 2013] [mpm_winnt:notice] [pid 3408:tid 256] AH00354: Child: Starting 150 worker threads.


php_error.log
Code: Select all
[29-Sep-2013 05:58:10 Europe/Berlin] PHP Warning:  file_get_contents(lang.tmp): failed to open stream: No such file or directory in F:\xampp\htdocs\xampp\index.php on line 2


Note: I should mention I don't know why it says "unclean shutdown of previous apache run?" - When shutting down xampp, I 'stop' MySQL, then I 'stop' Apache and wait for them both to show not running, then I click 'Quit' on the xampp window.
User avatar
Xyzzyx
 
Posts: 10
Joined: 14. March 2013 09:17
Operating System: Windows 7 Pro

Re: alias stopped working

Postby Xyzzyx » 30. September 2013 06:36

Just popping in to mention the php error seems to have sorted itself (presumably when I visited localhost in my browser is what gave it a language to set in the lang.tmp file).

The most recent apache error.log (virtually identical to the other, but different child process number, not sure if that's significant). Is the RSA cert warning anything I need to worry about? Still closing xampp as 'cleanly' as I know how, so still not sure why it is complaining about that.
Code: Select all
[Mon Sep 30 18:20:56.067481 2013] [ssl:warn] [pid 2372:tid 244] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Sep 30 18:20:56.087482 2013] [core:warn] [pid 2372:tid 244] AH00098: pid file F:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Sep 30 18:20:56.302495 2013] [ssl:warn] [pid 2372:tid 244] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Sep 30 18:20:56.325496 2013] [mpm_winnt:notice] [pid 2372:tid 244] AH00455: Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.3 configured -- resuming normal operations
[Mon Sep 30 18:20:56.325496 2013] [mpm_winnt:notice] [pid 2372:tid 244] AH00456: Server built: Feb 23 2013 12:42:00
[Mon Sep 30 18:20:56.325496 2013] [core:notice] [pid 2372:tid 244] AH00094: Command line: 'f:\\xampp\\apache\\bin\\httpd.exe -d F:/xampp/apache'
[Mon Sep 30 18:20:56.326496 2013] [mpm_winnt:notice] [pid 2372:tid 244] AH00418: Parent: Created child process 3300
[Mon Sep 30 18:20:56.822524 2013] [ssl:warn] [pid 3300:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Sep 30 18:20:57.053538 2013] [ssl:warn] [pid 3300:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Sep 30 18:20:57.078539 2013] [mpm_winnt:notice] [pid 3300:tid 256] AH00354: Child: Starting 150 worker threads.


And just in case it's useful, here's access.log after browsing localhost
Code: Select all
::1 - - [30/Sep/2013:18:30:43 +1300] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:43 +1300] "GET /xampp/ HTTP/1.1" 200 595 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:43 +1300] "GET /xampp/head.php HTTP/1.1" 200 1393 "http://localhost/xampp/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:43 +1300] "GET /xampp/start.php HTTP/1.1" 200 1618 "http://localhost/xampp/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/xampp.css HTTP/1.1" 200 4178 "http://localhost/xampp/head.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/img/bitnami-xampp.png HTTP/1.1" 200 13887 "http://localhost/xampp/start.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:43 +1300] "GET /xampp/navi.php HTTP/1.1" 200 3740 "http://localhost/xampp/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/img/blank.gif HTTP/1.1" 200 43 "http://localhost/xampp/head.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/img/head-windows.gif HTTP/1.1" 200 1362 "http://localhost/xampp/head.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/img/head-for.gif HTTP/1.1" 200 791 "http://localhost/xampp/head.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/img/xampp-logo-new.gif HTTP/1.1" 200 4878 "http://localhost/xampp/head.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/xampp.js HTTP/1.1" 200 573 "http://localhost/xampp/navi.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/img/apachefriends.gif HTTP/1.1" 200 979 "http://localhost/xampp/navi.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /xampp/img/strichel.gif HTTP/1.1" 200 61 "http://localhost/xampp/navi.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
::1 - - [30/Sep/2013:18:30:44 +1300] "GET /favicon.ico HTTP/1.1" 200 7782 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
User avatar
Xyzzyx
 
Posts: 10
Joined: 14. March 2013 09:17
Operating System: Windows 7 Pro

Re: alias stopped working

Postby Altrea » 30. September 2013 11:45

Xyzzyx wrote:Is the RSA cert warning anything I need to worry about?

No. HTTPS/SSL is preconfigured with dummy data to test if it is working. That produces the warnings.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: alias stopped working

Postby Nobbie » 30. September 2013 14:02

Xyzzyx wrote:When for example opening a php file in Firefox from the WebDev directory, it obviously isn't processing the php. Viewing the source via Firefox displays the php code in red. When trying to run OpenSim from the OpenSim folder, it (OpenSim) just crashes instantly, the same way it does when I forget to run xampp first.


This all looks like as if you were trying to simply "double click" in Explorer View on PHP Files (inside WebDav or OpenSim) instead of (correctly) applying "http://localhost/WebDav" in your Browser URL. Typically, there is neither any log, nor seems PHP to be executed (and finally, this does not work at all!).

Am I right with my suggestion?
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: alias stopped working

Postby Xyzzyx » 01. October 2013 02:36

oh GEEEEEEZZZZZZ...! :oops:

Yep, sure enough Nobbie, that's it. Simply replacing "file:///F:" with "localhost" did the deed... To quote Bejamin Zander, "How FASCINATING!"

However, OpenSim doesn't rely on the browser or php (it's a 3D virtual environment, often referred to as "the open-source version of Second Life" opensimulator.org), it just requires Apache and MySQL, but is still no longer working. However I would assume that's outside the scope of this forum. Might be something I need to add to an .ini file or something else I've completely forgotten about. But at least I can finally return to building websites!

Anyway, many thanks for your patience on this when I really just needed a smack upside the head! :lol:
User avatar
Xyzzyx
 
Posts: 10
Joined: 14. March 2013 09:17
Operating System: Windows 7 Pro


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 138 guests