DJSwenson Posted August 20, 2008 Share Posted August 20, 2008 I've been searching around for answers for a few things, but I've come up short every time. In a nutshell, I was trying to configure Apache to skip from the "Index of /" Directory directly into the drupal folder. I was using Webadmin to do my editing of the config files. I bit off more than I can chew. Now when I type in my URL (Localhost, or towards the server's internal IP address) I get a 404 File Not Found. It does not recognize the directory, though I can still "see" the server ( Hence the 404 that Apache gave me) I am trying to get my very own home grown server up and going. While I do own my domain name, I still haven't bought the static Ip address from my ISP. I am also quite fresh when it comes to Apache. I'm trying to learn though. Stack: Unbuntu, Apache2, PHP5, MySQL, Drupal 6.4 Also if the config files are needed, I can upload them for review. Quote Link to comment https://forums.phpfreaks.com/topic/120605-drupal-and-apache-help/ Share on other sites More sharing options...
trq Posted August 21, 2008 Share Posted August 21, 2008 We need to see your vhost configuration. I believe it will be within /etc/apache2/sites-available/ on Ubuntu (same as Debian). Quote Link to comment https://forums.phpfreaks.com/topic/120605-drupal-and-apache-help/#findComment-621573 Share on other sites More sharing options...
DJSwenson Posted August 21, 2008 Author Share Posted August 21, 2008 Ahhh I looked in the file, and all I saw was: Name of the file: Default VitualHost * Nothing else was in the folder, nor anything hidden Quote Link to comment https://forums.phpfreaks.com/topic/120605-drupal-and-apache-help/#findComment-621812 Share on other sites More sharing options...
DJSwenson Posted August 21, 2008 Author Share Posted August 21, 2008 *UPDATE* You got me thinking with the Vhosts. I found a shadow copy ( I believe that's what it's called) Though Webmin. In it was NameVirtualHost drupal <VirtualHost *> <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/drupal> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> DirectoryIndex index.php DocumentRoot /var/www ServerName drupal </VirtualHost> Now I can access the website though localhost or the Server IP. Now I have another question: When I type in http://localhost or http://Ser.ver.ip.0 , I now get a 403 forbidden to access / (root) directory. I can still bypass it with localhost/drupal, but would there be a way to completely bypass it without using that directory at all? I don't have any plans to install more than one server. Quote Link to comment https://forums.phpfreaks.com/topic/120605-drupal-and-apache-help/#findComment-621868 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.