By noblejas2005
hola tengo unos dias en digitalocean y tengo un problema :
nano /etc/apache2/sites-available/mysite.com.conf
<Virtualhost *:80>
ServerAdmin donal@mysite.com
ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /var/www/mysite.com
<Directory /var/www/html/>
Options Indexes FollowSyLinks
AllowOverride All
Require all granted
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
a2ensite mysite.com.conf a2dissite 000-default.conf systemctl restart apache2
and them ping mysite.com excelent but ping www.mysite.com unknown: host www.mysite.com
and them enter sudo nano /etc/hosts add my ip and mysite.com add my ip and www.mysite.com but nathing
in my file info.php
apache2handler
Hostname:Port **empleosfull.com:0 **
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!
In addition to configuring to configuring the ServerAlias in Apache, you also need to create DNS records. It sounds like you have an A record in place for mysite.com, you’ll need one for www.mysite.com as well. Take a look at this tutorial for all the info on setting up DNS records in the DigitalOcean control panel.
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.