ok, lets try this a different way.
Can you post the output of
ls -la /etc/apache2/sites-available/
and
cat /etc/apache2/sites-available/tristanf_me.conf
I think since I made that tutorial a long while ago some stuff has changed.
ok, lets try this a different way.
Can you post the output of
ls -la /etc/apache2/sites-available/
and
cat /etc/apache2/sites-available/tristanf_me.conf
I think since I made that tutorial a long while ago some stuff has changed.
here we have the output of ls -la
“total 24
drwxr-xr-x 2 root root 4096 Feb 8 22:04 .
drwxr-xr-x 8 root root 4096 Feb 6 11:56 …
-rw-r–r-- 1 root root 1332 Jan 7 2014 000-default.conf
-rw-r–r-- 1 root root 6437 Jan 7 2014 default-ssl.conf
-rw-r–r-- 1 root root 425 Feb 8 21:00 tristanf_me.conf”
the output of cat is this, (I’m warning you the code seemed to mess up last time i posted this) Okay it wouldn’t let me put the brackets on either of the virtualhost but I assure you they are there xD and I assure you it is spaced properly
VirtualHost *:80
ServerAdmin [email protected]
ServerName tristanf.me
ServerAlias www.tristanf.me tristanf.me
DocumentRoot /var/www/tristanf.me
<Directory /var/www/tristanf.me/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/tristanf.me-error.log
CustomLog ${APACHE_LOG_DIR}/tristanf.me-access.log combined
/VirtualHost
Ok so if you do
cd /etc/apache2/sites-available
and then try both of these (one will probably give an error)
sudo a2ensite tristanf_me.conf
sudo a2ensite tristanf_me
Sorry, its been quite a while since I have used Apache as most of my stuff is now running on nginx.
alright it was enabled and i reloaded apache2, now if you don’t mind how am I suppose to link my new domain to this website that has been enabled so that I can access the website
ALSO…THANK YOU
Apache should do this for you automatically, as long as your domain is set as the ServerName and you have run
sudo a2enmod vhosts && sudo service apache2 restart
responds with “error module vhosts does not exist!”
Sorry its,
sudo a2enmod vhost_alias
alright it gave me this output, honestly don’t know what it means
tristan@Server:~$ sudo a2enmod vhost_alias && sudo service apache2 restart
Enabling module vhost_alias.
To activate the new configuration, you need to run:
service apache2 restart
I mean if this is getting annoying I can stop
Its normal to see
* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified doma in name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
If you visit your site it should be showing up, and am able to view it from my phone.
when I go to tristanf.me it just says webpage not available
EDIT: oh it works on my phone as well, Okay so like, thank you so freaking much, guess it’s just taking a while to work on my PC? anyway yeah thank you thank you thank you
yep thank you very much!!
Its probably that DNS hasn’t resolved yet, unless you’re running pfSense or another firewall like that (they cause issues sometimes until you configure them).
With my Pfsense DNS rebinding, i had to add entry’s to the DNS forwarder. Not sure if it would work by editing the “hosts” file on all of your local hosts, a huge pain though. This was to make it work internally on my network.
DNS rebinding protection can save your butt tho
this domain no longer exists
I get
but that doesn’t surprise me with the age of this post