# Static hosting interview प्रश्नोत्तरं

Source: https://ravindrabagale.com/mr/aws/ch07-static-website-hosting-3-oses-2-web-servers/interview-questions.html
Language: mr (Marathi with English technical terms)

Q1. Document root?

Files serve करायचा folder. साध्या mapping मध्ये URL path त्याला जोडून file शोधतो; aliases/rewrites असतील तर mapping बदलते.

Q2. एका IP/port वर अनेक sites?

Host header वर name-based vhost निवड: Nginx server_name, Apache ServerName.

Q3. 403 troubleshoot?

Index, namei -l ने parent permissions, owner, SELinux labels/logs आणि Require/root directives तपासा.

Q4. sites-available/enabled?

Available मध्ये configs; enabled मध्ये include होणारे symlinks. Nginx ln -s, Ubuntu Apache a2ensite.

Q5. Local folder upload?

scp -i key.pem -r ./site user@IP:~/; rsync; server-side git clone; SFTP clients.

Q6. HTTPS?

Domain workflow मध्ये DNS स्थिर IP कडे, validation साठी 80, HTTPS 443, Certbot plugin, certificate install आणि tested automatic renewal. IP certificates चा स्वतंत्र supported workflowही आता आहे.

रवींद्र बागले यांची tip

उत्तरात स्वतःच्या lab मधला root/config आणि test command सांगा.
