ldmko...@yahoo.com wrote: > I am having a problem with Apache2. I have set a new configuration and have > three html pages defined. The inital html (index.html) displays fine on my > laptop on my home network; however, when I attemp to go to the second page I > get 404 not found on this server. If I use localhost on my linux machine the > second page diplays in firefox as "file:///. . .I have done the appropriate > a2ensite and a2dissite commands. I am new at Linux so any advice is > appreciated. If there are other files that you need to look at, let me know. > Thanks, Larry >
> <VirtualHost *:80> > DocumentRoot /var/www/ldmdomain.info/html > <Directory /var/www/ldmdomain.info/html> > Options Indexes FollowSymLinks > AllowOverride All > Order deny,Allow > Allow from all > Require all granted > </Directory> > </VirtualHost> This should be in /etc/apache2/sites-available/ something, and then linked to sites-enabled/ > # Include the virtual host configurations: > IncludeOptional sites-enabled/*.conf This is what allows that. >Configuration file /etc/apache2/sites/available/ldmdomain.info.conf It's sites-available and sites-enabled, not sites/available. > ServerName ldmdomain.info I can't ping or whois this, so that's a big problem. Register a domain and get DNS going for it, or this will not work outside of your own local network. Inside your local network, you will need an A or AAAA and/or CNAME record pointing to ldmdomain.info and optionally (but you should) www.ldmdomain.info > <VirtualHost *:80> > ServerAdmin ad...@ldmdomain.info > ServerName ldmdomain.info > ServerAlias www.ldmdomain.info > DocumentRoot /var/www/ldmdomain.info/html > <Directory /var/www/ldmdomain.info/html> > Options -Indexes +FollowSymLinks > AllowOverride All > </Directory> > ErrorLog ${APACHE_LOG_DIR}/error.log > CustomLog ${APACHE_LOG_DIR}/access.log combined > </VirtualHost> That all looks OK. -dsr-