my etc/hosts <pre> 107.170.137.119 www.usama-ahmed.tk usama-ahmed.tk 107.170.137.119 www.projects-usama-ahmed.tk projects-usama-ahmed.tk </pre>
can anyone give any solution plz ? !
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
i found a solution after so many days first you make sure the you direction the domain to the NS of digital ocean.
2- in etc/hosts <pre> 127.0.0.1 domain.com 127.0.0.1 domain2.com </pre>
3- in the apache2.conf <pre> NameVirtualHost *:80 </pre> 4- sites-available <pre> <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/yourdomain ServerName http://www.yourdomain.com ServerAlias yourdomain.com <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/yourdomain> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
</VirtualHost> </pre> 5- enable yourdomain <pre> a2ensite yourdomain.com </pre> 6- <pre> service apache2 restart </pre>