Can We create alias in XAMPP?

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

Can We create alias in XAMPP?

Postby girish_327 » 21. August 2009 08:47

Hello All,
I am newbie in the XAMPP Previously I am using EasyPHP for my requirement I would like use website alias instead of putting my files in the httdocs folder.

Please help me if we can create alias in XAMPP.

Thank you


Girish Baraskar
Agnis Designers
Web Designer Kolhapur
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby Nobbie » 21. August 2009 09:12

>Please help me if we can create alias in XAMPP.

Why not? Xampp comes with standard Apache, simply follow the Apache documentation how to create ALIAS.
Nobbie
 
Posts: 8779
Joined: 09. March 2008 13:04

Re: Can We create alias in XAMPP?

Postby girish_327 » 21. August 2009 11:18

OK... I will try this..

But still I like same kind of script which is available in EasyPHP in XAMPP.
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby girish_327 » 21. August 2009 11:51

Hello ,

I put below code into xampp/Apache/httpd.conf

Code: Select all
### Alias EasyPHP
# ========================================
#alias
Alias "/agnis" "E://Agnis_Designers/"
<Directory "E://Agnis_Designers/">
 Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
#alias
# ========================================
### Alias End
# ============================================================================


butr its not working...
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby Wiedmann » 21. August 2009 13:29

butr its not working...

Why not?
- error message?
- current behavior?
- desired behavior?

("E://" is always wrong and must be "E:/".)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Can We create alias in XAMPP?

Postby girish_327 » 23. August 2009 13:42

Hello,
I used below code in httpd.conf file and tried address http://localhost/agnis/
its giving error as follows

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
8/23/2009 6:10:28 PM
Apache/2.2.12 (Win32) DAV/2 mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0

Code: Select all
Alias "/agnis" "E:/Agnis_Designers/"
<Directory "E:/Agnis_Designers/">
Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>


still
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby Wiedmann » 23. August 2009 14:00

I used below code in httpd.conf file and tried address "http://localhost/agnis/"
its giving error as follows:
Access forbidden!

So the code is correctly working. It denies access from all (IPs).
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Can We create alias in XAMPP?

Postby girish_327 » 23. August 2009 14:55

Then What should I do for to avoid this error.
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby Wiedmann » 23. August 2009 15:06

Then What should I do for to avoid this error.

So you want allow access, and not deny it?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Can We create alias in XAMPP?

Postby girish_327 » 23. August 2009 15:39

Yes I want Allow access these files.
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby Wiedmann » 23. August 2009 16:01

Yes I want Allow access these files.

So you should write "Allow" in the above code, and not "Deny".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Can We create alias in XAMPP?

Postby girish_327 » 23. August 2009 16:13

Now Getting Following Error

Code: Select all
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
can't open file /xampp/tmp/server/internal.lock: No such file or directory at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 239. at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 239 MLDBM::Sync::Lock('MLDBM::Sync=HASH(0x30f2afc)', 1) called at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 231 MLDBM::Sync::ReadLock('MLDBM::Sync=HASH(0x30f2afc)') called at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 79 MLDBM::Sync::AUTOLOAD('MLDBM::Sync=HASH(0x30f2afc)', 'application') called at D:/xampp/perl/site/lib/Apache/ASP/State.pm line 337 Apache::ASP::State::FETCH('Apache::ASP::State=HASH(0x3d14e4c)', 'application') called at D:/xampp/perl/site/lib/Apache/ASP/State.pm line 72 Apache::ASP::State::new('Apache::ASP=HASH(0x3d14d4c)', 'application', 'server') called at D:/xampp/perl/site/lib/Apache/ASP/State.pm line 324 Apache::ASP::State::TIEHASH('Apache::ASP::State', 'Apache::ASP=HASH(0x3d14d4c)', 'application', 'server') called at D:/xampp/perl/site/lib/Apache/ASP/Application.pm line 17 Apache::ASP::Application::new('Apache::ASP=HASH(0x3d14d4c)') called at D:/xampp/perl/site/lib/Apache/ASP/StateManager.pm line 70 Apache::ASP::InitState('Apache::ASP=HASH(0x3d14d4c)') called at D:/xampp/perl/site/lib/Apache/ASP.pm line 421 Apache::ASP::new('Apache::ASP', 'Apache2::RequestRec=SCALAR(0x30f266c)', 'E:/Agnis_Designers/default.asp') called at D:/xampp/perl/site/lib/Apache/ASP.pm line 184 Apache::ASP::handler('Apache2::RequestRec=SCALAR(0x30f266c)') called at -e line 0 eval {...} called at -e line 0

If you think this is a server error, please contact the webmaster.
Error 500
localhost
8/23/2009 8:42:35 PM
Apache/2.2.12 (Win32) DAV/2 mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby Wiedmann » 23. August 2009 16:52

That's a clean XAMPP installation, without additional changes in the config files? (apart from the lines above)

Are there any files in " E:\Agnis_Designers\?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Can We create alias in XAMPP?

Postby girish_327 » 23. August 2009 16:56

Yes....Thousands of Files in that folder.
girish_327
 
Posts: 9
Joined: 21. August 2009 08:43

Re: Can We create alias in XAMPP?

Postby Wiedmann » 23. August 2009 17:14

Yes....Thousands of Files in that folder.

Also any index file which is called with "http://localhost/agnis/"?

Wiedmann wrote:That's a clean XAMPP installation, without additional changes in the config files? (apart from the lines above)

:?:
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests