Chuyển đổi cấu hình giữa Apache (.htaccess), Nginx, Caddy, IIS (web.config), và Lighttpd. Hỗ trợ redirects, rewrites, headers, CORS, cache, security.
1. Chọn định dạng nguồn (ví dụ: Apache)
2. Chọn định dạng đích (ví dụ: Nginx)
3. Dán config vào ô bên dưới
4. Nhấn "Chuyển Đổi" để xem kết quả
5. Copy config đã convert và dùng trên server mới
• Không phải mọi rule đều convert được 100% chính xác
• Luôn test config trên môi trường staging trước
• Backup config cũ trước khi thay thế
• Một số tính năng đặc thù của từng webserver không có tương đương
• Sau khi convert cần review và điều chỉnh cho phù hợp
• Kiểm tra syntax bằng: nginx -t, apache2ctl configtest, caddy validate
✅ 301/302 Redirects - Chuyển hướng vĩnh viễn/tạm thời
✅ URL Rewrites - Viết lại URL
✅ HTTP Headers - Set/Add/Remove headers
✅ CORS - Cross-Origin Resource Sharing
✅ Cache Control - Expires, Cache-Control headers
✅ Security Headers - X-Frame-Options, CSP, HSTS, X-XSS-Protection
✅ HTTPS Redirect - Force SSL/TLS
✅ WWW Redirect - Add/remove www subdomain
✅ Directory Index - Default files
✅ Error Pages - Custom 404, 500 pages
✅ IP Allow/Deny - Access control by IP
⚠️ Basic Auth - Limited support (syntax khác nhau)
⚠️ Advanced Regex - Có thể cần điều chỉnh
Apache - File .htaccess hoặc httpd.conf (mod_rewrite, mod_headers)
Nginx - File nginx.conf hoặc sites-available/site.conf
Caddy - Caddyfile (v2 syntax)
IIS - web.config (URL Rewrite Module)
Lighttpd - lighttpd.conf (mod_rewrite, mod_redirect)
Apache → Nginx:
RewriteRule ^old$ /new [R=301,L]
→ rewrite ^/old$ /new permanent;
Apache → Caddy:
Header set X-Frame-Options "DENY"
→ header X-Frame-Options "DENY"
Nginx → Apache:
add_header X-Content-Type-Options nosniff;
→ Header always set X-Content-Type-Options "nosniff"