لطفا وارد شوید یا ثبت‌نام کنید تا به انجمن‌ها دسترسی کامل داشته باشید.



 
امتياز موضوع :
  • 0 رأي - معدل امتيازات : 0
  • 1
  • 2
  • 3
  • 4
  • 5
ایجاد subdomain در apache2
2012-08-11, 11:00 PM,
ارسال : #1
ایجاد subdomain در apache2
سلام
من Debian 6 روی یک سرور نصب کردم و روش plesk ریختم الان نمی‌تونم subdomain تعریف کنم کسی می‌تونه کمکم کنه گام به گام این کارو انجام بدم؟
کانفیگ فایل آپاچی:
کد :
Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
#

DocumentRoot "/var/www/vhosts/url/httpdocs/"
#
# Configure the DocumentRoot Properties
#
<Directory "/var/www/vhosts/url/httpdocs/">
        Options All
        # AllowOverride controls what directives may be placed in .htacces$
        # 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>
#
# Configure Sub-Domain Properties. This prevents those nasty 403 errors
#

# mysql administration tool
#<Directory "/srv/www/phpMyAdmin/">
#       Options Indexes MultiViews
#       AllowOverride All
#       Order allow,deny
#       Allow from all
#</Directory>

# a client web site built with CakePHP
<Directory "/var/www/vhosts/url/httpdocs/payment/">
        Options All
        AllowOverride All
        Order allow,deny
        Allow from all
</Directory>

NameVirtualHost url:80
# the mysql tool's url
#<VirtualHost phpmyadmin.localhost:80>
# and absolute path
#DocumentRoot "/srv/www/phpMyAdmin/"
#</VirtualHost>
#Same for the Client Site
<VirtualHost payment.url:80>
DocumentRoot "/var/www/vhosts/url/httpdocs/payment/"
</VirtualHost>

لطفا راهنمایی !

توزیع گنو/لینوکس زمین
xamin GNU/Linux
جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2012-08-12, 02:39 PM,
ارسال : #2
Re: ایجاد subdomain در apache2
گام به گام نمی خواد. یه virtual host دیگه براش تعریف کن با اسم subdomain

Don't bother, we're using GNU/Linux everywhere, even there Big Grin
Linuxmotto
گروه کاربران لینوکس اصفهان
مشاهده تارنمای کاربر جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2012-08-12, 05:30 PM,
ارسال : #3
Re: ایجاد subdomain در apache2
یه سری مثال:
لینک

گروه کاربران ایرانی BSD
مشاهده تارنمای کاربر جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2012-09-04, 02:55 AM,
ارسال : #4
Re: ایجاد subdomain در apache2
اگر plesk دارید خواهشا چیزی رو دستی دست نزنید. با webadmin اون کار کنید.

اعتراض به عملکرد دولت در زمینه IT
اینترنت حداقل 5M + یک laptop حق مسلم هر ایرانیست.
مشاهده تارنمای کاربر جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ


رفتن به انجمن :


کاربران در حال مشاهده موضوع : 1 مهمان