Jump to content

Drupal and Apache help


DJSwenson

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/120605-drupal-and-apache-help/
Share on other sites

*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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.