Jump to content
php.lv forumi

2 domen uz 1 ip


Harijs

Recommended Posts

Tātad kadu laiku man stāv majaslapa, bet es gribu atvērt velvienu uz šī paša pc ar citu domenu

kā to izdarīt ?

(piemeram 1 majaslapa ir mapē htdocs otra htdocs2 un kur visu nokonigurēt lai strādātu ?

ir xampp un apache.

100% ka atbilde jau ir kautkur forumā , es pēc ilgas meklēšanas tā arī to neatradu.

Edited by Harijs
Link to comment
Share on other sites

nuu izlasiju visu iespejamo te par virutalhost sapratu ka jameklē ir kaut kurā configā..

tā nu atradu

httpd-vhosts.conf

 

kurā ir

 

<VirtualHost *:80>

ServerAdmin [email protected] (1. kas preciizi butu jaraksta te ?)

DocumentRoot "D:/xampp/htdocs2/" (2. der? ja man eksiste tada mape kur glabatos otra web faili.)

ServerName Serverblabla (3. der? )

ServerAlias www.dummy-host.localhost (4. ko rakstiit te ja es negribu pieveinot savam esošajam domenam klāt sub domen bet gribu pilnigi citu domen ? piemeram gribu gl.govs.lv bet man jau stav hl.vista.lv)

ErrorLog "logs/dummy-host.localhost-error.log" (5. kas te ?)

CustomLog "logs/dummy-host.localhost-access.log" combined (6. uun kas te ? )

</VirtualHost>

Edited by Harijs
Link to comment
Share on other sites

kā saprast šo ?

viens domens iet.

uz otra izmetas error

 

Access forbidden!

 

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

 

If you think this is a server error, please contact the webmaster.

Error 403

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...