انجمن کاربران لینوکس ایران - تکنوتاکس سابق
ایجاد subdomain در apache2 - نسخه قابل چاپ

+- انجمن کاربران لینوکس ایران - تکنوتاکس سابق (https://forum.sito.ir)
+-- انجمن: پرسش‌ها و پاسخ‌ها (https://forum.sito.ir/forumdisplay.php?fid=3)
+--- انجمن: سرویس‌دهنده‌های لینوکس (https://forum.sito.ir/forumdisplay.php?fid=10)
+--- موضوع: ایجاد subdomain در apache2 (/showthread.php?tid=17969)



ایجاد subdomain در apache2 - hannnndy - 2012-08-11

سلام
من 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>

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


Re: ایجاد subdomain در apache2 - tolstoy - 2012-08-12

گام به گام نمی خواد. یه virtual host دیگه براش تعریف کن با اسم subdomain


Re: ایجاد subdomain در apache2 - bkouhi - 2012-08-12

یه سری مثال:
لینک


Re: ایجاد subdomain در apache2 - m_pahlevanzadeh - 2012-09-04

اگر plesk دارید خواهشا چیزی رو دستی دست نزنید. با webadmin اون کار کنید.