Access Apace folder with Virtual directory port

1. Open the “httpd.conf” file
2. Add the below code at the end of file.

Listen 82
<VirtualHost localhost:82>
DocumentRoot C:/xampp/htdocs/test
<Directory “C:/xampp/htdocs/test”>
allow from all
Options +Indexes FollowSymLinks +ExecCGI

3. Save the file and restart the Apache and enjoy with port.

4. Output is:
http://localhost/test/ or http://localhost:82

In the above ex:

Port: 82
Virtural host: Localhost with 82 port. We can map any port number above the 80. Ex: localhost:85 [or] [or]
Document root: where the port need to map. In the above example, we mapped the “C:/xampp/htdocs/test”. We also map the linux directory as “/var/www/html/test”.
Directory: same as Document root

httpd.conf path:

XAMPP: C:\xampp\apache\conf\httpd.conf
Fedora linux: /etc/httpd/conf/httpd.conf
WAMP: c:\wamp\Apache2\conf\httpd.conf

WAMP user please refer this link:


About selvam4win

I am Selvam. I am very jolly person and frank one.

Posted on August 30, 2011, in Apache, PHP, Port, Virutal directory and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: