Chào mừng bạn đến vói vietvbb.vn. Hãy Đăng nhập hoặc Đăng Ký để tham gia thảo luận tại diễn đàn.



Results 1 to 3 of 3

Thread: Lỗi cài XAMPP

  1. #1
    Join Date
    3 June 2009
    Location
    HN
    Age
    29
    Posts
    910
    Thanks
    281
    Thanked 172 Times in 160 Posts
    Rep Power
    41

    Lỗi cài XAMPP

    Mình đang sử dụng 6 Domain trên 1 VPS sử dụng XAMPP. Cơ mà hiện tại mới chạy được 3 domain còn lại thì lỗi như sau :

    New XAMPP security concept:

    Access to the requested object is only available from the local network.

    This setting can be configured in the file "httpd-xampp.conf".

    // 3 domain đầu tiên thì đã cài bình thường, còn 3 domain sau thì lỗi thế này. Hóng cao nhân



    Đây là file httpd-vhost

    ###########################################
    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot D:\xampp\htdocs\VBB\DOMAIN1
    ServerName forum.domain1.com
    </VirtualHost>
    ###########################################
    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot D:\xampp\htdocs\VBB\DOMAIN2
    ServerName forum.domain2.com
    </VirtualHost>
    ###########################################
    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot D:\xampp\htdocs\VBB\DOMAIN3
    ServerName forum.domain3.com
    </VirtualHost>
    ###########################################
    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot D:\xampp\htdocs\VBB\DOMAIN4
    ServerName forum.domain4.com
    </VirtualHost>
    ###########################################
    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot D:\xampp\htdocs\VBB\DOMAIN5
    ServerName forum.domain5.com
    </VirtualHost>
    ###########################################
    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot D:\xampp\htdocs\VBB\DOMAIN6
    ServerName forum.domain6.com
    </VirtualHost>
    ###########################################

    File httpd-xampp.conf

    #
    # XAMPP settings
    #

    <IfModule env_module>
    SetEnv MIBDIRS "/xampp/php/extras/mibs"
    SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"
    SetEnv OPENSSL_CONF "/xampp/apache/bin/openssl.cnf"
    SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"
    SetEnv PHPRC "\\xampp\\php"
    SetEnv TMP "\\xampp\\tmp"
    </IfModule>

    #
    # PHP-Module setup
    #
    LoadFile "/xampp/php/php5ts.dll"
    LoadModule php5_module modules/php5apache2_2.dll

    <FilesMatch "\.php$">
    SetHandler application/x-httpd-php
    </FilesMatch>
    <FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
    </FilesMatch>

    #
    # PHP-CGI setup
    #
    #<FilesMatch "\.php$">
    # SetHandler application/x-httpd-php-cgi
    #</FilesMatch>
    #<IfModule actions_module>
    # Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
    #</IfModule>


    <IfModule php5_module>
    PHPINIDir "/xampp/php"
    </IfModule>

    <IfModule mime_module>
    AddType text/html .php .phps
    </IfModule>

    ScriptAlias /php-cgi/ "/xampp/php/"
    <Directory "/xampp/php">
    AllowOverride None
    Options None
    Order deny,allow
    Deny from all
    <Files "php-cgi.exe">
    Allow from all
    </Files>
    </Directory>

    <Directory "/xampp/cgi-bin">
    <FilesMatch "\.php$">
    SetHandler cgi-script
    </FilesMatch>
    <FilesMatch "\.phps$">
    SetHandler None
    </FilesMatch>
    </Directory>

    <Directory "/xampp/htdocs/xampp">
    <IfModule php5_module>
    <Files "status.php">
    php_admin_flag safe_mode off
    </Files>
    </IfModule>
    AllowOverride AuthConfig
    </Directory>

    <IfModule alias_module>
    Alias /security "/xampp/security/htdocs/"
    <Directory "/xampp/security/htdocs">
    <IfModule php5_module>
    <Files "xamppsecurity.php">
    php_admin_flag safe_mode off
    </Files>
    </IfModule>
    AllowOverride AuthConfig
    </Directory>

    Alias /licenses "/xampp/licenses/"
    <Directory "/xampp/licenses">
    Options +Indexes
    <IfModule autoindex_color_module>
    DirectoryIndexTextColor "#000000"
    DirectoryIndexBGColor "#f8e8a0"
    DirectoryIndexLinkColor "#bb3902"
    DirectoryIndexVLinkColor "#bb3902"
    DirectoryIndexALinkColor "#bb3902"
    </IfModule>
    </Directory>

    Alias /phpmyadmin "/xampp/phpMyAdmin/"
    <Directory "/xampp/phpMyAdmin">
    AllowOverride AuthConfig
    </Directory>

    Alias /webalizer "/xampp/webalizer/"
    <Directory "/xampp/webalizer">
    <IfModule php5_module>
    <Files "webalizer.php">
    php_admin_flag safe_mode off
    </Files>
    </IfModule>
    AllowOverride AuthConfig
    </Directory>
    </IfModule>

    #
    # New XAMPP security concept
    #
    <LocationMatch "^/(?i?ampp|security|licenses|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 \
    fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
    fe80::/10 169.254.0.0/16

    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    </LocationMatch>

  2. #2
    Join Date
    27 March 2008
    Location
    Hà Nội
    Age
    35
    Posts
    4.056
    Thanks
    311
    Thanked 5.052 Times in 1.517 Posts
    Rep Power
    550
    Ngoài cái LocationMatch thì không thấy gì đặc biệt

  3. The Following User Says Thank You to Linhnt For This Useful Post:

    jeanneppel (23 November 2016)

  4. #3
    Join Date
    3 June 2009
    Location
    HN
    Age
    29
    Posts
    910
    Thanks
    281
    Thanked 172 Times in 160 Posts
    Rep Power
    41
    Nhưng lỗi là do đâu a linh ???

    // Thêm nữa là các domain đó ko có htaccess

    - - - Updated - - -

    đã xong khốn nạn +++ hiểu sao lại có file htaccess trong thư mục htdocs
    Last edited by Gg9xKute; 18 December 2012 at 02:28 AM.



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [HELP] Không cho hiện thị xampp khi đưa forum ra ngoài
    By luckyman in forum vB3 Thảo Luận Chung
    Replies: 0
    Last Post: 11 April 2012, 10:40 PM
  2. [HELP] vấn đề về xampp(host ảo) và host mua
    By levanthuc in forum vB4 Thảo Luận Chung
    Replies: 1
    Last Post: 9 August 2011, 08:31 PM
  3. Các bạn cho mình hỏi về xampp tí
    By chungkol in forum vB3 Thảo Luận Chung
    Replies: 3
    Last Post: 18 July 2009, 03:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •