Web Server Log Parser - Online Apache/Nginx Analyzer
Paste a raw server log snippet and see a structured table with IP, method, URL, and status. Quick audit.
UD5 Toolkit
Visually construct Nginx location blocks with proxy, static, FastCGI, redirects, CORS, caching & more.
Get production-ready config snippets instantly.
/api/ for prefix, \.php$ for regexlocation /api/ {
# Proxy configuration
proxy_pass http://localhost:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 60s;
proxy_connect_timeout 10s;
proxy_send_timeout 60s;
proxy_buffering on;
}
root and alias in Nginx? root appends the location path to the root directory. For location /images/ with root /var/www, a request for /images/photo.jpg looks in /var/www/images/photo.jpg.
alias replaces the matched location portion entirely. For location /images/ with alias /var/www/photos/, the same request looks in /var/www/photos/photo.jpg. Note: alias requires a trailing slash if the location path has one.
try_files in a location block? try_files is essential for Single Page Applications (SPAs) built with React, Vue, or Angular. It tells Nginx to check for a file, then a directory, and finally fall back to index.html so client-side routing works correctly: try_files $uri $uri/ /index.html;.
It's also useful for serving cached files first, then falling back to a backend: try_files $uri @backend;
proxy_pass matter? With location /api/ and proxy_pass http://backend/ (both with trailing slashes), a request to /api/users becomes http://backend/users — the /api/ part is stripped.
With proxy_pass http://backend (no trailing slash), the same request becomes http://backend/api/users — the full path is preserved. This is one of the most common Nginx configuration mistakes.
Add the following inside your location block:
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE' always;
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type' always;
if ($request_method = 'OPTIONS') { return 204; }
Use always to ensure headers are added even for non-2xx responses. Our tool's CORS toggle handles this automatically.
For versioned/hashed assets (e.g. app.a1b2c3.js), use long-term caching with immutable: add_header Cache-Control "public, max-age=31536000, immutable";.
For unversioned assets, use shorter TTLs with revalidation: add_header Cache-Control "public, max-age=3600, must-revalidate";. Our tool's cache presets make this easy.
Always run nginx -t to test your configuration syntax before reloading. This catches typos and invalid directives. Then apply with nginx -s reload for a graceful reload without dropping connections.
Generally, a single location block should have one primary handler (proxy_pass, root, try_files, or return). However, you can combine them with advanced techniques like try_files with a named location fallback (@backend). Our tool focuses on clean, single-purpose location blocks that follow Nginx best practices.
Paste a raw server log snippet and see a structured table with IP, method, URL, and status. Quick audit.
Build CSS Grid layouts by defining columns, rows, and gaps visually. Get the complete grid CSS code. An essential web design tool running in the browser.
Build a proper <meta name='viewport'> tag with width, initial‑scale, and user‑scalable options. Avoid common mobile rendering issues.
Create HTML tables visually by adjusting rows and columns. Add data, style, and copy the generated markup. Perfect for quick table prototyping.
Compress and decompress text using the browser's native Compression Streams API. See the binary output size.
Paste a raw WebAuthn attestation response (CBOR) and decode its fields: format, authenticator data, and extensions. Debug passkeys locally.
Generate a Contributor Covenant or custom Code of Conduct for your project or event. Ready to paste into your repo.
Encode special characters to HTML entities or decode them back to normal text. Perfect for web developers to sanitize or reverse HTML escaping. All processing is client-side.
Enjoy classic Tetris in your browser. Rotate, move, and drop tetrominoes. Clear lines and score. Fully local JavaScript.
Generates simple puzzle ideas (cipher, hidden messages) that can be printed for home escape rooms.
Browse the built‑in styles that browsers apply to HTML elements. Understand why your page looks different. Static reference.
Enter hop additions with time and alpha acid to estimate International Bitterness Units. Adjust recipe.
Align card elements across rows using CSS subgrid. See how headers and footers align vertically. Future of CSS layout.
Enter a URL and see live mocked previews for Facebook, Twitter, LinkedIn, and Slack based on its meta tags. Find missing tags.
Design a crystal grid by placing crystals on a sacred geometry template. Add notes. Screenshot your layout. Spiritual/art.
Place multiple grid items into the same cells to create overlapping layouts. Learn the technique visually. Copy code.
One‑click to get a full NPC backstory with motivation, secret, and appearance. Perfect for dungeon masters.
Reduce an image to large colored squares. Create bold, minimalist wall art. Adjust block size. Download PNG.
A 10‑band graphic equalizer applied to any audio file or mic input. Save presets. All processing via Web Audio API.
Paste CSV and get a beautiful HTML table with sortable headers (optional). Copy the full HTML/CSS snippet. Local.
Calculate ideal stereo speaker placement (toe-in, distance from wall) for best soundstage. Visual diagram. For audiophiles. Local tool.
Upload a photo and convert it to a pixelated cross-stitch pattern with DMC floss color matching. Adjust size and color count. Local processing.
Animated circle guides your breathing: breathe in, hold, breathe out. Customizable ratios (e.g., 4-7-8). Soothing colors, optional bell sound. Purely local.
Split a text into an array of individual characters, ready to paste into code. Options for quotes and newlines.
Adjust cocktail ingredient quantities based on desired total volume or number of servings. Preserve classic ratios. Perfect for home bartenders.
Enter piece count and piece size to estimate finished dimensions. Check if it fits your table.
Convert a short video clip to GIF directly in the browser. Trim, resize, and adjust frame rate. No upload required, uses built‑in video decoder. Perfect for memes.
Design a soft, extruded card with inner and outer shadows. Adjust depth and roundness. Copy the CSS.
Paste a PEM/DER certificate and decode all fields: issuer, subject, validity, SANs, and fingerprint. Pure JavaScript parser.
Convert an animated GIF into a horizontal or grid sprite sheet. Download as PNG and get CSS example. Game dev helper.