انجمن کاربران لینوکس ایران - تکنوتاکس سابق

نسخه ي کامل: ایجاد 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>

لطفا راهنمایی !
گام به گام نمی خواد. یه virtual host دیگه براش تعریف کن با اسم subdomain
یه سری مثال:
لینک
اگر plesk دارید خواهشا چیزی رو دستی دست نزنید. با webadmin اون کار کنید.