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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.