|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation) |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I made some changes to .conf files to have DocumentRoot point to /home/user/NetBeansProjects/Drupal
but, I'm getting a: [Mon Nov 02 19:55:14 2009] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/drupal Do I need to create vHost in order for Apache to point to this folder? |
|
||||
|
Modify mod_userdir.conf if you wanna serve pages from a user's home directory
__________________
My site: http://microchip.bplaced.net My repo: http://download.opensuse.org/repositories/home:/microchip8 SUSE Unbound Forum: http://suseunbound.lefora.com Do coders dream of sheep() ? |
|
||||
|
It's only necessary to change default-server.conf if you want to redefine the doc root. Then it's optional to create a virtual-server .conf file in vhosts.d. So which .conf files did you change and/or create? And can you post it/them here.
__________________
Drop in and visit some time. |
|
|||
|
If you are still having trouble try using YaST which has a module that will let you add a virtual host
(I would undo any changes you made the conf related to document root etc as I found my manual changes aren't picked up by yast and it might cause some conflicts later on) |
|
|||
|
Here's the only changes I made in httpd.conf, just doing a override of the default:
PHP Code:
PHP Code:
I have it working fine on my Windows server, but changing over to Suse Linux. My development server is a Suse Linux as well as my Pruction Server which is a VirtualBox VM. |
|
||||
|
By default, your default-server-drupal.conf won't be included. Better make virtual servers if you intend to run more than one server. Look in vhosts.d for an example file
__________________
My site: http://microchip.bplaced.net My repo: http://download.opensuse.org/repositories/home:/microchip8 SUSE Unbound Forum: http://suseunbound.lefora.com Do coders dream of sheep() ? |
|
||||
|
The existence of two default-server.conf files, named in this:
Quote:
You should only have (one) default-server.conf in the directory /etc/apache2, and then put two vitual .conf files in /etc/apache2/vhosts.d, one each for the production and development servers. Step 1: You modify default-server.conf to put the document root at /home/developer/NetBeansProjects Step2: make a file developer.conf in vhosts.d for the development server located at /home/developer/NetBeansProjects/drupal_devel. The doc root in this .conf file is at ......./drupal_devel Step3: make a file production.conf in vhosts.d for the production server located at /home/developer/NetBeansProjects/drupal_prod Then you put the developer install of drupal into the directory drupal_devel and the production install of drupal into the directory drupal_prod. The doc root in this .conf file is at ......./drupal_prod
__________________
Drop in and visit some time. |
|
||||
|
For an example of default-server.conf and then subsidiary *.conf virtual server defs see this: HowTo: Configure a Linux Apache Web Server on Suse/openSUSE
__________________
Drop in and visit some time. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|