how to creat vhost the right way... - some beginner question

hello Team,

tried to create a vserver with webmin

the browser says:

Forbidden:
You don’t have permission to access / on this server.

well - first question: did i succeed in configuring the name-server?

i think so - since i have a response with the url…

apache: don’t have permission to access / on this server. when I am using virtualhost

cf here
apache - Error message “Forbidden You don’t have permission to access / on this server” - Stack Overflow
apache: don’t have permission to access / on this server. when I am using virtualhost - Stack Overflow
Virtual host setup, no permission to access problem - The SitePoint Forums
Apache2: Forbidden You don’t have permission to access /dir/ on this server - Ask Ubuntu

note: i use webmin - so what to do?

hello - even worse

btw, at some point iit says:

Failed to create virtual server : A virtual server with the same name and port already exists

but believe me - i cannot see it in the list.

question jf j get a 404 error - was the nameserverconfiguration successful?
love to hear from you

**btw; see the apache errorlog **

see here

[Fri Jul 31 05:23:52.257768 2015] [autoindex:error] [pid 9847] [client 91.121.107.25:46000] AH01276: Cannot serve directory /sites/www.xy.de/: No matching DirectoryIndex (index.htm,index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Jul 31 06:59:56.272895 2015] [autoindex:error] [pid 10246] [client 92.75.203.165:38328] AH01276: Cannot serve directory /sites/www.xy.de/: No matching DirectoryIndex (index.htm,index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Jul 31 07:00:26.363764 2015] [autoindex:error] [pid 10246] [client 92.75.203.165:38328] AH01276: Cannot serve directory /sites/www.xy.de/: No matching DirectoryIndex (index.htm,index.html,index.php) found, and server-generated directory index forbidden by Options directive

apache: don’t have permission to access / on this server. when I am using virtualhost

well - what does this mean

Instead of webmin,
I’d recommend you install and use WebYAST
https://en.opensuse.org/Portal:WebYaST

Keep in mind there are numerous YAST applets which can be used to setup various apps including Apache virtual servers.
You may need to install YAST applets you want to use.

TSU

hi there tsu

thx for the answer- but i am a bit restricted in this question - my serverydmin installed webmin

i have to know the steps

what comes first

a. the creation of a folder on the webspace or
b. the step of creation a vhost within webmin ?

which steps need to be done in which step - what comes first what comes second?

IIRC Webmin supports running a console on the server.
If that’s the case, that’s probably your easiest solution…

Within your console you should be able to launch YAST in text mode, install yast2-http-server, close and re-open yast (don’t know if necessary) and configure your vhost that way.

If you want to really dig into configuring manually, on my machine…
You can read the installed documentation which is also a sample vhost.conf file

less /usr/share/doc/packages/apache2/original/extra/httpd-vhosts.conf 

The above references the standard apache 2.4 online documentation
http://httpd.apache.org/docs/2.4/vhosts/

HTH,
TSU

				 				 				 				 					hello dear tsu2

many many thanks for all - i will think bout all your ideas and will try out all.

your idesas were great -and i appreciate all your help.

=> DNS did not get divided well, and on some DNS-Server

it gets not resolved - so we get the 404! error

(can this mean that i have several nameserver in /etc/resolv.conf)

what do you say?

In general,
An HTTP 404 error which generally means “a file or folder not found” is the result of webcode error… Either a link to a page that doesn’t exist or the path to a page is incorrect.

Not typically a DNS error which is typically the website Domain name and by default should resolve and display a landing page.

TSU

hello dear tsu

the first try to answer - i got a 500 errror when triying to reply to the thread. - this was with mozilla
then i tried it with chrome. This worked well.

but in hte meantime i sent you a pm. Sorry for that!

so i took this way:

  • many many thanks for the hints in the “how t o create a vhost the right way!”

see the page: http://www.f-s-j.de/

i do not know what goes on here.

is the nameserver configuration done right?

can we say that this was made propperly ? I am a bit clueless i have to confess.

maybe it has only to do with the things on the server - like permissions etc. etx.

just answer to the thread…

love to hear from you
greetings

btw - found out some more things…

see the difference you can type this URL two times

  1. www.f-s-j.de
  2. f-s-j.de

there are completely different results - one time you get a 404 the other time not!

does this behaviour tell us something bout the nameserver-configuration or the server itself!?
do i have to work on the nameserver!?
do i have to do some corrections on webmin-vhost setup?

That is a common DNS records configuration…
It’s a setting that isn’t usually automatic but needs to be done to enable the default Domain (the Domain name without specifying a record as a prefix) to point to a specified IP address (most commonly the www record).

TSU

hello dear TSU

first of all - many many thanks for all the great hints.
well i wonder what goes on.

i am not so familiar with vhost creation.

well - should i add some thing now. some directives or something alike
or does it need some permissions on the directories etc ?

love to hear from you

btw. work with the webmin - surface not on the apache direct

hello dear tsu hello dear all -

many thanks for all hints. now all goes well
resolved -

greetings