Alias TAG virtual host

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

Alias TAG virtual host

Postby d_raghu9 » 06. January 2011 04:24

Hi there,

i have been struck on this for a looooong time now :-(, Basically my "Alias" tag is not working in my c:\xampp\apache\conf\virtual-hosts.conf. Url http://raghu.tkiportal works OK but http://raghu.tkiportal/simplesaml DOES NOT. The directory structure for Alias tag exists in my localhost (i checked)

This is my setting for one of many sites

Code: Select all
    NameVirtualHost *:80
    <VirtualHost *:80>   
   AcceptPathInfo On
   ServerName raghu.tkiportal
   Alias /simplesaml C:/xampp/htdocs/tki_portal4.2/extension/feide/lib/simplesaml/www
   DocumentRoot C:/xampp/htdocs/tki_portal4.2
   <Directory C:/xampp/htdocs/tki_portal4.2>
     Options Indexes FollowSymLinks MultiViews
     AllowOverride None
     Order allow,deny
     Allow from all
   LogLevel debug
   ErrorLog C:/xampp/apache/logs/raghu_tki_portal_error.log
   CustomLog C:/xampp/apache/logs/raghu_tki_portal_access.log combined
   ServerSignature On
   RewriteEngine On

   RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.*  /index_image_tki_portal.php [L]

   RewriteRule !(^/design|^/var|.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf|mov|html|xml|xsl|htc)$ /index.php

Do you guys see any fault with my settings? The same setting works on linux box.

Any help would be very much appreciated...Thanks guys

Posts: 1
Joined: 06. January 2011 04:21

Re: Alias TAG virtual host

Postby Sharley » 06. January 2011 04:45

Does the \xampp\apache\logs\error.log file hold any clues?

Any error messages in the browser?

Try wrapping your Alias in <IfModule alias_module>:
Code: Select all
<IfModule alias_module>
Alias /simplesaml "C:/xampp/htdocs/tki_portal4.2/extension/feide/lib/simplesaml/www/"
<Directory "C:/xampp/htdocs/tki_portal4.2/extension/feide/lib/simplesaml/www">
AllowOverride All
# or what ever other directives etc. you need like permissions order allow deny etc.

Some Alias examples can be found in the \xampp\apache\conf\extra\httpd-xampp.conf file.

If that fails to work then drop the <IfModule alias_module> wrapper but wrap all the paths in " "

Full paths in Windows Apache conf files should be wrapped in " "

Good luck and I hope this helps.
User avatar
AF Moderator
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests