Cách dưới thì sau khi mình thay tutum/apache bằng webdevops/php-apache và mình docker-compose up, thì mình vào localhost sẽ thấy nội dung là: (Không thấy thư mục project của mình mặc dù mình truy xuất vào thư mục /var/www/html thì có thư mục project của mình)
Index of /
Name Last modified Size Description
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
Sau khi mình chạy thành công docker-compose up thì mình vào localhost thì OK, nhưng mình vào project của mình thì vẫn bị lỗi như thế này:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Note: Mặc dù mình vào thử file apache2.conf thì:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>
THẢO LUẬN
cho e xin source code đc ko ạ b0ysh0ckhn98@gmail.com
cho e xin source code đc ko ạ b0ysh0ckhn98@gmail.com
Like! Mà sao không thấy nút Like nhỉ..
Anh giải thích kỹ hơn khắc phục nhược điểm của ajax dùng "Thêm nội dung href ở các thẻ a có dùng ajax " có tác dụng gì thế ạ?
Cách dưới thì sau khi mình thay tutum/apache bằng webdevops/php-apache và mình docker-compose up, thì mình vào localhost sẽ thấy nội dung là: (Không thấy thư mục project của mình mặc dù mình truy xuất vào thư mục /var/www/html thì có thư mục project của mình) Index of /
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
Không có phần 2 hả bạn? bài viết hay, tiếp phần 2 đi bạn.
def sum(numbers) if numbers.empty? // Neo kết thúc phải return 1 giá trị khác nil 0 else first, *rest = numbers first + sum(rest) end end
Bạn sửa thành như này nhé, mình phải debug ra giấy mới tìm được lỗi
)
def sum(numbers) if numbers.empty?
else first, *rest = numbers first + sum(rest) end end
sum([1, 3, 5, 7, 9]) # => 25
Em bỏ vào máy tính không chạy anh ơi. Nó báo lỗi. Có sai sót gì ở đây không ạ. Em dùng ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
Những đề mục ấy, dịch thì dịch hết, để thì để hẳn cứ cái dịch cái ko ko ổn đâu e
Hay quá
Cách dưới sao rồi bạn?
B đã restart lại apache sau config chưa? => Mình đã restart config bằng lệnh service apache2 restart rồi. Để mình thử cách dưới thử xem.
Sau khi mình chạy thành công docker-compose up thì mình vào localhost thì OK, nhưng mình vào project của mình thì vẫn bị lỗi như thế này:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Note: Mặc dù mình vào thử file apache2.conf thì:
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride ALL Require all granted </Directory>
=> Có khi nào còn thiếu chỉnh chỗ nào nữa ko bạn?
hay qua, viet tiep di anh oi
bài viết ngắn gọn dễ hiểu, nhiều hình ảnh minh họa (y)
hóng phần 2 và 3
trình bày dài dòng ko phân đoạn nhỏ gây khó đọc. Cũng không có hình ảnh minh họa, toàn chữ là chữ
bá (haiz)
Không ghi nguồn tham khảo?