تور لحظه آخری
امروز : پنجشنبه ، 9 اسفند 1403    احادیث و روایات:  امام صادق (ع):مؤمن در سرشتش دروغ و خيانت نيست و دو صفت است كه در منافق جمع نگردد: سيرت نيكو و د...
سرگرمی سبک زندگی سینما و تلویزیون فرهنگ و هنر پزشکی و سلامت اجتماع و خانواده تصویری دین و اندیشه ورزش اقتصادی سیاسی حوادث علم و فناوری سایتهای دانلود گوناگون شرکت ها

تبلیغات

تبلیغات متنی

خرید پرینتر سه بعدی

سایبان ماشین

اجاره سند در شیراز

armanekasbokar

armanetejarat

Future Innovate Tech

پی جو مشاغل برتر شیراز

خرید یخچال خارجی

بانک کتاب

irspeedy

درج اگهی ویژه

تعمیرات مک بوک

دانلود فیلم هندی

خرید بلیط هواپیما

بلیط اتوبوس پایانه

تعمیرات پکیج کرج

خرید از چین

خرید از چین

خرید سرور اچ پی ماهان شبکه

کاشت ابرو طبیعی و‌ سریع

دوره آموزش باریستا

مهاجرت به آلمان

تشریفات روناک

نوار اخطار زرد رنگ

ثبت شرکت فوری

خودارزیابی چیست

فروشگاه مخازن پلی اتیلن

کاشت ابرو طبیعی

پارتیشن شیشه ای اداری

رزرو هتل خارجی

تولید کننده تخت زیبایی

سی پی کالاف

دوره باریستا فنی حرفه ای

چاکرا

استند تسلیت

پی ال سی زیمنس

دکتر علی پرند فوق تخصص جراحی پلاستیک

تعمیر سرووموتور

تحصیل پزشکی در چین

مجله سلامت و پزشکی

تریلی چادری

مهاجرت به استرالیا

ایونا

تعمیرگاه هیوندای

کشتی تفریحی کیش

تور نوروز خارجی

خرید اسکرابر صنعتی

طراحی سایت فروشگاهی فروشگاه آنلاین راه‌اندازی کسب‌وکار آنلاین طراحی فروشگاه اینترنتی وب‌سایت

کاشت ابرو با خواب طبیعی

هدایای تبلیغاتی

زومکشت

فرش آشپزخانه

خرید عسل

قرص بلک اسلیم پلاس

کاشت تخصصی ابرو در مشهد

صندوق سهامی

تزریق ژل

خرید زعفران مرغوب

تحصیل آنلاین آمریکا

سوالات آیین نامه

سمپاشی سوسک فاضلاب

مبل کلاسیک

بهترین دکتر پروتز سینه در تهران

صندلی گیمینگ

کفش ایمنی و کار

دفترچه تبلیغاتی

خرید سی پی

قالیشویی کرج

سررسید 1404

تقویم رومیزی 1404

ویزای توریستی ژاپن

قالیشویی اسلامشهر

قفسه فروشگاهی

چراغ خطی

ابزارهای هوش مصنوعی

آموزش مکالمه عربی

اینتیتر

استابلایزر

 






آمار وبسایت

 تعداد کل بازدیدها : 1862417735




هواشناسی

نرخ طلا سکه و  ارز

قیمت خودرو

فال حافظ

تعبیر خواب

فال انبیاء

متن قرآن



اضافه به علاقمنديها ارسال اين مطلب به دوستان آرشيو تمام مطالب
archive  refresh

طريقي نسب Apache Web Server بر روي سيستمهاي Windows Linux FreeBSD -


واضح آرشیو وب فارسی:سایت ریسک: t=7522">طريقي نسب Apache Web Server بر روي سيستمهاي Windows Linux FreeBSD dariushonline 03 اسفند 1382, 21:31ميبخشيد كه فارسي نمي تونم type konam Dar in ja shoma tarigeye nasbe Apache ra ruye system haye Windows, Linux, Freebsd mitavanid bebinid. Hosting Multiple Sites on your system? Description To run multiple websites under Apache on a machine having single IP either loopback 127.0.0.1 or other Prerequisites >> Win NT/2000 - Admin Access >> Complete path to various local website directories >> Windows HOSTS file >> Linux / FreeBSD and or MAC Os X (Panter) Steps Step1: Download and Install latest stable Apache Win32 installable from Apache.org [Newer versions are available in only .MSI format] Step2: Test installation by running Apache server. Shutdown the server once everything looks ok Step3: Next open the Apache configuration file in Windows Notepad or any other text editor. This file is always inside the directory CONF inside the Apache installation directory. In this example under c:apacheconf Step4: Now the to enable Virtual Hosts for Apache. Find the text "NameVirtualHost". Generally near the end of the file. Step5: Change the entry from #NameVirtualHost * to NameVirtualHost 127.0.0.1:80 This will configure the server to listen to port 80 on the IP 127.0.0.1 of the machine Step6: Next to define the individual virtual sites go to the <VirtualHost> directive section, normally after "NameVirtualHost". By default the entries would be similar to one below. #<VirtualHost *> # ServerAdmin [email protected] # DocumentRoot / # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost> Change the above to will enable the default Apache website installed under C:apachehtdocs. This will also log default site access and errors under the C:apachelogs directory. <VirtualHost 127.0.0.1> ServerAdmin admin@localhost DocumentRoot "c:/apache/htdocs" ServerName localhost ErrorLog logs/localhost_error.log CustomLog logs/localhost_access.log common </VirtualHost> Step7: Now to step-up multiple sites on the machine. Say the first site name is "SITE1" add the following below the Virtual Host directive for the default site [Step # 6] <VirtualHost 127.0.0.1> ServerAdmin webmaster@site1 DocumentRoot "c:/mywebsites/site1" ServerName site1 ServerAlias *.site1 ErrorLog logs/site1-error.log ScriptAlias /cgi-bin/ "c:/mywebsites/site1/cgi-bin/" <Directory "c:/mywebsites/site1"> Options All Includes Indexes </Directory> </VirtualHost> Document Root points to the directory path where the SITE1 files are located. IN the example above the files are located in C:MYWEBSITESSITE1 Server Name is the domain name of the site1 namely "SITE1" ScriptAlias defines the cgi-bin directory for the site SITE1. This will enable cgi scripts to run from the define directory Repeat this step for any number of sites required to run on the machine. But take care to name each site differently Step8: Save and close the Step9: Now the most IMPORANT step, i.e. to define the DNS entries for each of the sites created in step7. Open file "HOSTS" in a text editor. This file is located in C:WINDOWS in Win9.x and C:WINNTSYSTEM32DRIVERSETC in Win NT/2000 Step10: Add site names similar to this 127.0.0.1 site1 127.0.0.1 site2 127.0.0.1 site3 Take care not to leave a blank carrige return in the end of the file. Save and exit Step11: Reboot the machine for changes to take effect Step12: Test the installation by pointing brower to and The second URL will show the index html file of SITE1 Additional Tweak In case the machine configured needs to serve sites to the local network, the IP needs to be changed. In the example above the IP used is a local loopback IP 127.0.0.1. If the machine is on a network and has been assigned an IP say 192.168.0.10 replace all the 127.0.0.1 with 192.168.0.10. Also on each machine on the network the same "HOSTS" file needs to be copied for point to the machine running Apache Server. Dariush Azimi




این صفحه را در گوگل محبوب کنید

[ارسال شده از: سایت ریسک]
[مشاهده در: www.ri3k.eu]
[تعداد بازديد از اين مطلب: 264]

bt

اضافه شدن مطلب/حذف مطلب







-


گوناگون

پربازدیدترینها
طراحی وب>


صفحه اول | تمام مطالب | RSS | ارتباط با ما
1390© تمامی حقوق این سایت متعلق به سایت واضح می باشد.
این سایت در ستاد ساماندهی وزارت فرهنگ و ارشاد اسلامی ثبت شده است و پیرو قوانین جمهوری اسلامی ایران می باشد. لطفا در صورت برخورد با مطالب و صفحات خلاف قوانین در سایت آن را به ما اطلاع دهید
پایگاه خبری واضح کاری از شرکت طراحی سایت اینتن