| सर्वर दुनिया | गोपनीयता नीति | सहायता / संपर्क करें |
1749 / 126281068
|
Apache2 : Userdir सक्षम करें2024/05/17 |
|
userdir सक्षम करें. उपयोगकर्ता इस सेटिंग द्वारा अपनी होम डायरेक्टरी के अंतर्गत वेबसाइट बना सकते हैं। |
|
| [1] | Apache2 कॉन्फ़िगर करें। |
|
root@www:~# a2enmod userdir Enabling module userdir. To activate the new configuration, you need to run: systemctl restart apache2root@www:~# systemctl restart apache2 |
| [2] | किसी उपयोगकर्ता के साथ एक परीक्षण पृष्ठ बनाएं और वेब ब्राउज़र वाले किसी भी क्लाइंट कंप्यूटर से उस तक पहुंचें। |
|
ubuntu@www:~$
mkdir ~/public_html ubuntu@www:~$ chmod 711 $HOME ubuntu@www:~$ chmod 755 ~/public_html ubuntu@www:~$ vi ~/public_html/index.html <html> <body> <p style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;"> UserDir Test Page </p> </body> </html> |
|
| Sponsored Link |
|
|