Are there some special URLs in XAMPP instalation?

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

Are there some special URLs in XAMPP instalation?

Postby svrcekmichal » 30. June 2014 09:20

Hi,

I've currently installed new xampp-win32-1.8.3-4-VC11 on my working station. I copied my project from work, changed httpd-vhosts.conf to look like this:

Code: Select all
NameVirtualHost *
  <VirtualHost *>
    DocumentRoot "C:/Users/svrcek/XAMPP/htdocs/"
    ServerName localhost
  </VirtualHost>
  <VirtualHost *>
    DocumentRoot "C:/Users/svrcek/XAMPP/htdocs/eshop/"
    ServerName eshop.local
  <Directory "C:/Users/svrcek/XAMPP/htdocs/eshop/">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>


Everything was working fine, but when i entered URL like

Code: Select all
eshop.local/error/action


it went to 404 Page not found. There' s no folder error in my htdocs, all i wanted to do is just to redirect this page
to index.php and set $_GET['url'] = 'arror/action'.

My current .htacces file in C:/Users/svrcek/XAMPP/htdocs/eshop/

Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]


Can someone help me? Need to make it work as soon as possible, thanks
svrcekmichal
 
Posts: 2
Joined: 30. June 2014 09:13
Operating System: Home Win7 / Work Win8

Re: Are there some special URLs in XAMPP instalation?

Postby Altrea » 30. June 2014 12:22

Are there some special URLs in XAMPP instalation?


All URLs that are used in an Alias, Location or Proxy definition.
There are a bunch of them in XAMPP Apache (depending on which config files are activated or not some of them are maybe not used):

  • /cgi-bin/
  • /error/
  • /examples
  • /icons/
  • /licenses
  • /manual
  • /my-gateway/
  • /phpmyadmin
  • /php-cgi/
  • /security
  • /server-info
  • /server-status
  • /uploads
  • /webalizer
  • /webdav

In your case /error/ is already used
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Are there some special URLs in XAMPP instalation?

Postby svrcekmichal » 30. June 2014 13:14

Is it possible to reuse for example that /error/ or it' s better to change it in my code for example to /err/ ?
svrcekmichal
 
Posts: 2
Joined: 30. June 2014 09:13
Operating System: Home Win7 / Work Win8

Re: Are there some special URLs in XAMPP instalation?

Postby Altrea » 30. June 2014 14:12

This Alias is used for the default Apache error Pages (everywhere ErrorDocuemnt is used this Alias is used).
So it is possible to change it in XAMPP, but you have to search and replace multiple files.
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 69 guests