ติดตั้ง DirectAdmin แล้ว แต่เรียกเข้า www.domain.com/config ไม่ได้ เข้าได้แต่ www.domain.com:2222

รบกวนหน่อยครับ ไม่รู้ต้องไปตั้งค่าตรงไหน

ลองเรียกเข้าช่องทางนี้ดูครับ DA ไม่เหมือน cPanel
http://domain.com:2222

ลองเรียกเข้าแบบนี้ดูครับ

http://domain.com:2222

เข้าทาง :2222 ดีแล้วครับ
/config ก็เป็นแค่ alias ใน apache เพื่อ redirect ไป :2222 แค่นั้นเอง
และอีกอย่างมันจะกระทบกับเว็บที่มี folder ชื่อ config จะทำให้เรียกไฟล์ไม่ได้

ลองตรวจสอบไฟล์ /etc/httpd/conf/extra/httpd-alias.conf ดูว่าได้กำหนด alias ไว้หรือยัง


Alias /config "/var/www/html/redirect.php"

ถ้ากำหนดไว้แล้ว ลองไปเช็คไฟล์ /var/www/html/redirect.php ดูครับ


<?php
header("Location: http://".$_SERVER['HTTP_HOST'].":2222");
?>

ตรวจสอบแล้วมีอยู่แล้วครับ แต่เวลาเรียก มันขึ้น error ครับ

[h=1]500 Internal Server Error[/h]

run php เป็น cgi น่ะสิ
เช็ค owner/permission ของไฟล์ redirect.php ครับ
แก้เป็น webapps/644

แก้ตามแล้ว ใช้ได้แล้วครับ ขอบคุณมาก

ขอถามอีกหน่อยครับ /webmail เวลาเรียกขึ้น error แก้ไขอย่างไรครับ

[h=1]Not Found[/h] The requested URL /webmail/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

หลังๆมา Da ไม่ได้ติด /webmail มาให้แล้วครับ uebimiau มันไม่พัฒนาแล้วครับ
ก็แก้ไฟล์ /etc/httpd/conf/extra/httpd-alias.conf เหมือนเดิม อาจจะทำ /webmail ไปใช้ roundcube แทนครับ
ประมาณนี้
Alias /webmail “/var/www/html/roundcube/”

ok ได้แล้ว ขอบคุณมากเลยครับ

ln -s [COLOR=#333333]/var/www/html/roundcube/ [/COLOR][COLOR=#333333]/var/www/html/webmail[/COLOR]