पहली बात आप क्या करना चाहते जाएगा एक उपनाम निर्देशिका अपने XAMPP को स्थापित जोड़ें:
C:\xampp\apache\conf\alias
इसके बाद, आप करेंगे की आवश्यकता है अपनी अपाचे कॉन्फ़िगरेशन फ़ाइल बदलें। आप
C:\xampp\apache\conf\httpd.conf
अंतर्गत देख सकते हैं एक बार जब आप httpd.conf खोल दिया है, समाप्त करने के लिए निम्नलिखित जोड़ने और इसे बचाने के लिए।
Include "conf/alias/*"
अब, प्रत्येक अन्य नाम के लिए क्या आप एक फ़ाइल इस तरह बनाने की जरूरत बनाना चाहते हैं:
<directory "c:\users\foo\programming\dev">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
# Order allow,deny
Allow from all
</Directory>
Alias /dev "C:\users\foo\programming\dev"
इस उदाहरण उर्फ "देव" कहा जाता है और यह को इंगित " सी: \ उपयोगकर्ता \ foo \ प्रोग्रामिंग \ dev "
अंत में, आपको अपना अपाचे सर्वर पुनरारंभ करना होगा और यही वह है।
स्रोत
2014-10-13 14:02:24
यह लिंक मर चुका है मुझे डर है – pluke
मैंने इसे सभी पाठ होने के लिए अपडेट किया, जो नीचे जैसा दिखता है। मुझे Xampp मंचों पर कॉन्फ़िगरेशन फ़ाइल का स्थान भी मिला और संदर्भ के लिए वहां एक लिंक जोड़ा। – Melikoth
यह मुझे एक लंबा समय लगा, लेकिन एक लाइन लापता है। उचित समाधान में काम करने के लिए 'सभी अनुमोदित' की आवश्यकता होनी चाहिए। – Veehmot